Skip to content Skip to sidebar Skip to footer

Listview + Imagebutton + Descendantfocusability

I have a listview to which I add rows with 1 imagebutton .. I tried to set the imagebutton the setfocusable false but still not working .. item_list.xml

Solution 1:

I believe in order to have BOTH the listView row and the ImageButton clickable, you'll need to set both of these on the ImageButton object:

  android:focusable="false"
  android:focusableInTouchMode="false"

Give that a shot. I'd also try using an onClickListener on your ImageButton instead of the touchListener.

Post a Comment for "Listview + Imagebutton + Descendantfocusability"