Hi,

I'm trying to implement a list view where each item consists of some
text, an image, and two buttons. Clicking on the buttons should
perform one action (sharing in this case), and clicking "anywhere
else" in the item should perform another action (in this case, start
an activity to provide a more detailed view of the item.)

I can't seem to find the right combination of focus settings to allow
this. Out of the box I was getting clickable buttons but an otherwise
unclickable list item behind them. I added android:focusable="false"
android:focusableInTouchMode="false" to the buttons, and now I have a
clickable liste item in the background and the buttons are clickable,
except if i click the general list item area, BOTH buttons highlight
(and a I presume get click events?)

How can I set it up so that I can detect button clicks within the list
items as well as "general"/"elsewhere" clicks in the list item?

Thanks,
Brain

-- 
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