Multiple images in edit text Android - 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.

Related

Adding image in a text field in flutter

I want to add images in a text field/text form field in flutter. Whenever the user clicks the first button in the bottom navigation bar, the app will ask to pick an image and the image will display in the text field.
Like this:-
How Can I add one? (I am not talking about emoji)
ANY HELP OR IDEA WOULD BE APPRECIATED.
You can use RichTextEditor using rich_text_view plugin to support stylized text. Another option here is by using flutter_markdown to render images from Markdown.

Android - how to integrate text into image

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?

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/

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.

Trouble with list adapters and images. Android

i need help with this wall i have hit inside my app. Basically i have a screen that needs to display 80 rows of information (scrollable listview type) however i need 2 different images (dependent upon data from the database);
like this (image edit; it wont let me post images so i'll ASCII draw it, prolly wont turn out right =) )
|img| | img 2 | Built String
|| |_____|
Where the first image is say like a picture of a person, the second image will be sorta like a progress bar made up 1 of 5 pictures (20% increments) and the text will be a string built from data.
I can get my listviews to display a built string perfectly but im having issues on the images. Anyway, ive searched and cant seem to find any information to help so if anyone is out there that can help me id appreciate it. Thanks.
You need to have a special xml layout file for the single row which then contains
all the <Image> tags for what you want.
Have a look at https://github.com/pilhuhn/ZwitscherA/blob/master/res/layout/tweet_list_item.xml for an example. This layout is then passed when setting the adapter as in https://github.com/pilhuhn/ZwitscherA/blob/master/src/de/bsd/zwitscher/TweetListActivity.java#L419

Categories

Resources