1

I am unable to fire OnItemClicklistner method on clicking on Checkbox (in my List-view), i have tried following way...

i have set the focusability and clickability to false as follows.

android:focusable="false"
android:clickable="false"
android:focusableInTouchMode="false"

It fires the OnItemClicklistner but doesn't send reference of Checkbox in view parameter. Please help on this.

Darshan Kapasi
  • 187
  • 1
  • 2
  • 14

1 Answers1

0

Please look at Google documentation at CheckBox class. Checkbox does not have OnItemClicklistener. You may be getting events from a different UI element, hence confusing you. Checkbox has setOnClickListener method for you to use. Remember documentation is there to help you.

The Original Android
  • 6,147
  • 3
  • 26
  • 31