Hello,

How can I create clickable images inside TextView? I've searched 
ClickableSpan but how can I catch different images' click events?

(I need to show contents which contains images and texts in different 
position, the content doesn't have a template like structure, so I cannot 
design a layout for this purpose. So I need some kind of dynamic layout 
organization which can contain texts and images)

My layout will be like;

<https://lh5.googleusercontent.com/-l58PKjZpN54/US9brOUZESI/AAAAAAAACAk/9xcBVeXvqjQ/s1600/Screen+Shot+2013-02-28+at+2.32.17+PM.png>

Possible solutions can be;


   1. Webview? But it will be heavy. Because there will be more than 100 
   content pages.
   2. Html.fromHtml() ? It supports images but it doesn't supports click 
   events for images.
   3. Anything else? Your advice?

Thanks,

Musa

P.S: I also asked the question in 
Stackoverflow: 
http://stackoverflow.com/questions/15136520/android-clickable-images-inside-textview

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to