I have a ListView with a onItemClickListener attached.
Inside that ListView I have some rows, each with a CheckBox.
The problem is: when I click the CheckBox the Listener who answer is the onItemClickListener attached to the list. Instead I want the onCheckedChagedListener attached to the CheckBox to answer.
I've tried to put
android:descendantFocusability="blocksDescendants"
on root item or my row layout, I've also tried to use the variants afterDescendants and beforeDescendants, but none of them help me achieve what I want.
I also went through some answers on Stackoverflow and elsewhere but I can't get rid of it...
How can I be able to have both listeners, one on CheckBox only and one on whole row?
CheckBox? have you tried to setonCheckedChangeListenerinside ofonItemClick? if no, I suggest you to try, because in my case worked properly.