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.
Related
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?
I am just starting with android. This is what i want to make:
Now when you click on From, a new screen would open where you can select places and once you select you will get back to this screen where instead of "Bangalore" it would be the place you selected.
What kind of a field is this ? Text field ?
Also if i want to add any effect like when you click on it its color changes, how would i go about it ? Any tutorials or documentation i can check out for this.
Yes, you will probably want to use TextView.
You can change the text it displays by using SetText(), and you can change the text color by using SetTextColor().
You need a TextView to display text, but if you want to display an image, text and be able to interact with that, then Button or ImageButton is what you need.
Your question is too broad, so I encourage you to start doing some tutorials. To implement all that stuff you'll need to learn about layouts and activities, dialogs, listviews, ... Basic Android, but it needs a minimum of experience.
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.
I have a program that I'm writing in Android using Eclipse. It has an array of buttons (4x4).
I would like to have the buttons contain a user defined image (perhaps some filled circles).
How do I go about doing this?
Thanks
Mike
http://developer.android.com/resources/tutorials/views/hello-formstuff.html#CustomButton
Should be straight forward enough to follow.. if the image is chosen by the uesr, you will just have to change the image path on a button press or something similar
I have to create a small panel like thing with a border.
This should contain a text, an image that describes the text and a button.
On clicking that button I have to do some operations also.
Which widget is suitable for this?
Can anyone suggests any idea?
ImageButton is what I can think of. Try the ApiDemo sample application comes up with android sdk too. Another tool you might need is DroidDraw (Free android UI designer) and hierarchyviewer.bat(inside android sdk tools) can also help you if you want to know how the other developers use for such purpose.
I have assumed that you want to display button with images + Text,
You can do it with Button. There are 2 ways to do it(Button with Image and Text).
By xml, you can set
android:background attribute of
button and the text which you set,
will be appeared above the
background.
By code, You can use
setBackgroundDrawable() , it is
used to set the background of a
button.
and If you want to display panel(By clicking on the handle of that panel, it will comes up with the many items as home screen) , slidingDrawer widgets is the best solution.