Skip to content Skip to sidebar Skip to footer

Setonitemclicklistener Not Working In Custom Listview

I have Implemented a custom ListView by extending Relative Layout for every row. Every row has Checkbox,Textview,Edittext. Everything working fine. It maintains it states. Listview

Solution 1:

Add

android:focusable="false"

attribute to the CheckBox. This will stop the checkbox from stealing the List item clicks.

Add android:descendantFocusability="beforeDescendants" to your ListView which makes the ViewGroup to get focus before any of its descendants.

Post a Comment for "Setonitemclicklistener Not Working In Custom Listview"