I have a ListView with custom items - 3 ImageViews and a TextView. I have a call to setItemsCanFocus(true)
, so I can make the ImageViews clickable. I\'m currently u
Setting android:addStatesFromChildren="true"
on the listview in your xml will send clicks on the child elements to the onItemClick
method in the onItemClickListener
connected to your listview.
Unfortunately you have to choose between using onItemClick() or onClick() on individual children. One way to do it however is to make the top-level view of each item clickable.