I have Implemented a custom ListView
by extending LinearLayout
for every row. Every row has a small thumbnail, a text and a check box
.
old answer: I wrote in previous post here
android:focusable="false"
android:clickable="false"
will not help when ImageButton is in custom view.. One must use button.setFocusable(false);
during runtime (from java source code)
Edit: There is even more elegant solution. Try to add android:descendantFocusability="blocksDescendants"
in root layout of list element. That will make clicks onListItem possible and separately u can handle Button or ImageButton clicks