I have seen dozens of posts about people trying to put a clickable
Button in a ListView cell, along with other text, and apparently
nobody has been able to get it to work.

Here is what I need to do:

1. Have a couple of TextViews in a ListView cell, with a clickable
Button on the right-side of the cell.

2. When the user clicks in the cell outside of the button, I should
receive the click in OnItemClicked (which will navigate me to another
Activity).

3.  When the user clicks on the Button in the cell, the Button's
onClick() should be executed and some other operation will be
performed.

4. This has to work for both Touch input, and trackball/D-pad input.

5. This cannot interfere with the ListViews selector highlighting such
that when I use the trackball-DPad to navigate the ListView, the
selected cell should be highlighted.

I just can't get this to work.  I've tried many permutations of many
approaches, but one of the above items stops working in each of the
cases.  Can anyone please tell me the best/correct way to achieve
this?

- Eric

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to