Image Handling in Edittext

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Image Handling in Edittext

Postby bijoy » Mon Jun 22, 2009 11:56 am

hello sir,
I am doing a notepad application.In that we have to attach an image to Notepad(which is using Edittext for typing)
I am getting the image by parsing an html string which contains image tag.

Spanned sp=Html.fromhtml(string). I am using getdrawable mehod for getting image

and adding the image to edittext


But i dont know how to put an onclick listener to that image bcoz I am adding that image in the form of (Spanned). What my exact need is like i would be able to remove/replace the image while clicking on the image. please help me in this issue
Once Poster
Once Poster
Posts: 1
Joined: Mon Jun 22, 2009 11:33 am


Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 4 guests