Can any one help me out how to use Html.ImageGetter to dispaly images using html image src tag ? and example or good tutorial
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To get images from the application resources first in the text file one inserts an html image tag like this:
Note that “my_image” is just a name of a drawable not a path. Then use this code to diplay the text with images in TextView
If the source in the img tag is misspelled the applicaiton will crash because the method will fail to find the drawable, so more code can be added to prevent this…