Sometimes you encounter a Onitemclicklistener event in the ListView that is not responding,main reason: The child element of the ListView contains elements such as button or ImageButton, and the button has a priority higher than the ListView so it cannot listen on the item's click event. Workaround: Add "android:descendantfocusability=" Blocksdescendants "to the root node of item. Add: This property of android:descendantfocusability is defined as the relationship between the ViewGroup and its child controls when one gets the focus for the view. There are three property values for android:descendantfocusability: Beforedescendants:viewgroup takes precedence over its subclass control and gets to focusAfterdescendants:viewgroup gets focus only if its subclass control does not need to get focusBlocksdescendants:viewgroup overrides the subclass control and gets the focus directly usually we use the third type, that is, the root layout of the item layout plus the android:descendantfocusability= "blocksdescendants" property is good.
The Onitemclicklistener of the ListView is not responding to the workaround