Android - how to integrate text into image - android

I want to create an Activity in my app that has an image chosen by the user and two or more EditTexts below said image where the user writes something.
After that, text from those EditTexts should be "integrated" into that image, let's say one on the top and one on the bottom of the image. I wrote integrated because I want the text to be a part of the image - those two need to become only one image so I can use an intent to send it to someone's email.
Sorry if the question is badly asked, I just didn't know how to formulate what I wan so I hope you got it.

Please follow steps
Create one framelayout with TextView and ImageView
Put EditText box implement TextWatcher
In onTextChanged method of textwatcher set text in textview.
You can create Bitmap of framelayout

Sounds like you are looking for ViewOverlay
The first example in this link does exactly what you want to do.
http://flavienlaurent.com/blog/2013/08/14/viewoverlay-when-how-and-for-what-purpose/

Have you tried using a custom/compound view?

Related

How can I personalize my textView?

Yesterday I asked a question about the TextView. I read and I see that it's very difficult to understand. So, I'm sorry.
Now I explain better my problem:
I try to personalize my TextView. I tried two different things:
I use photoshop, I made an image text and I use it as a drawable. The image re-sized isn't with right quality
I try to use the text of TextView, but I can't change the family of the text (the app crashed). Then I don't know how to set gradient as text color and border in the text.
What can I do?
Edit: yes! For the point 1 I use an ImageView inside of TextView. In point 2 I use TextView. I have problem in both situation!
I think to customize textview (any view) you have to implement your own custom view by creating your custom class.
Here is link for custom text view,i hope i will find it useful
http://www.jayway.com/2012/06/25/creating-custom-android-views-part-1-extending-standard-views-and-adding-new-xml-attributes/

Multiple images in edit text Android

I am trying to replicate the text message application of Android Application, where the requirement is to send multiple images in one message.
I am able to put one image in edit text field. However, I am not sure how we can put multiple images in edit text?
If it is not possible, what is the another way to do it?
Someone has mentioned in following link that need to use relative layout with gallery and textview.
How do I insert multiple image in Edit Text in android
Can anyone help me on this?
Thank you in advance.
You can use a
LayerDrawable
It is a Drawable that manages an array of other Drawables. These are drawn in array order, so the element with the largest index will be drawn on top.

How to make in Android EditText with Button like in iOS?

Can I do something similar with image below in Android default way?
See example image here
Yes, you make your editbox with correct graphic and then you put another button beside it.

1 line text view next to two line text view

I was wondering if this can be implemented in android.
So there are basically two text views one is the name / other is the "open" .
The name can extend more than one line and the "open" should be placed adjacently .
One way is to dynamically break the name text view into two and place "open" next to it. But I don't find it good solution . any direct way to implement it ?
You may set the following to your TextView:
android:drawableRight="#drawable/your_image"
You could create ListView and use
setCompoundDrawablesWithIntrinsicBounds in the layout for your Adapter. Create a Boolean to show when a pizza joint is open and when to show the Drawable.
Something like this:
if (isOpen){
yourTextView.setCompoundDrawablesWithIntrinsicBounds(0,0,0, drawable);
}
Of course, this would require you to make an "open" image, but the way I see it, this would be the easiest way.
Just a thought .
It can be done via setting text using textView.setText(Html.fromHtml(styledText));

showing text and image both while displaying list of applications in android

i want to create a home screen application where the applications looks like carousel , and i am able to do it . The problem i am facing is that in my application only the applications icon are getting displayed the text is missing in it , where as my requirement is that i want to both the icon and text to be displayed together.
my application displays same as the above showing image.
i want text to be combined with it as above image.
please help me.
Thanks
datta
So the simplest thing to do would be to create a Compound Control. This compound control would essentially be a LinearLayout with both and ImageView and a TextView in it. Then, where ever you use a CarouselImageView in your code, just use your new compound control instead.

Categories

Resources