tags:

views:

60

answers:

3

Hello! I wrote application which uses ListActivity. Each item of the list consists of ImageView and TextView. Long click on list entry triggers some menu and color effect because onCreateContextMenu was overridden. Sometimes TextView contains HTML links which I would like to be interactive. I read #1697908 and made links active, so browser/youtube player is started. Everything would be great but color effect on long click disappeared (context menu still appears).

Could somebody tell me how to connect these two features and get back color effect?

+1  A: 
Ben
Thanks for the answer. I am trying to add Linkify in a custom list adapter all the time. I'm not quite sure whether it solves my problem. How color state applied to single TextView could return change of color effect on entire row (LinearLayout which contains TextView).
boro
A: 

Hi boro, I used a ImageView and a Textview at the beginnin, but you can avoid that kind of problems using a WebView and keep the html interactivity.

read this

http://stackoverflow.com/questions/2991718/how-can-i-have-a-floating-image-right-aligned-with-text-that-wraps-around-the-i/2992124#2992124

Jorgesys
A: 

I've managed to solve this issue. Maybe not directly in such a way I wanted but it's enough for me. Instead of adding listener to TextView I add it to entire row. Highlighting is working as I expected. This behaviour is acceptable for my app but is some kind of workaround so I still would like to know whether it can be done better.

boro