Is there any way to add jpeg files to edittext in android. Basically i am creating a rich text editor in android which should have a provision to display images. Or do i need to make changes in edittext canvas for that. Any suggestions would be really helpful.
-Regards, Ron..
EDIT: Sorry I did not take enough time to read. You wanted an Editable with picture, not a simple TextView.
Anyway, the solution is maybe to catch user keys and update a webview on the fly using
You will need tight javascript/java linking. It can be somewhat tough to code but you will not be limited in terms of rich content.
Former answer:
You may want to use a WebView instead of a TextView.
They can be very lightweight if you feed them with simple HTML.
For example, if you want to use the image
myImage.png
that you stored in your projectassets
folder, simply use:Maybe you could use the android-richtexteditor component.
http://code.google.com/p/android-richtexteditor/
The code has been deleted from the official project but it is still available in the history.
http://android-richtexteditor.googlecode.com/svn-history/r3/trunk/