Whenever I see messages about the android:focusable and android:clickable attributes, I always see that they are set to the same values at the same time. I decided that there should be a reason if they are two separate attributes, not one.
It turns out that a much better way to achieve the desired behavior is to establish
android:focusable="false"
or
yourButton.setFocusable(false)
on Button in View . Once you do this, you can set OnClickListener to Button , and clicking on a line will trigger the onListItemClick() method in OnItemClickListener .
Matteo Danieli Jun 14 '13 at 7:38 2013-06-14 07:38
source share