Q:

android listview, inconsistent click behavior

I have a listview where many views inside of it have their own clicklisteners which do different things, but the behavior is not consistent.
a) Some click listeners just work. They open the activity they are supposed to.
b) Some click listeners just work but don't show the click state, where my view has android:background="?attr/selectableItemBackground" 
c) Some click listeners don't work at all
I am dumbfounded because all the views have :
android:clickable="true"
android:duplicateParentState="true"

Some that work have the same attributes as the views that don't work. One LinearLayout responds to clicks, while another does not. It is very aggravating and I'm not seeing what I'm missing

A:

If you have a ImageButton then :
In your layout xml for those items, add
     android:descendantFocusability="blocksDescendants" 

to the root view.
It works perfectly for a ListView that has ImageButtons. According to official reference, blocksDescendants means that the ViewGroup will block its descendants from receiving focus.
else remove 
 android:clickable="true"
 android:duplicateParentState="true"

from your items ,
and set OnClickListener for each view in getView() Method . 

