Mohit Deshpande
Mohit Deshpande

Reputation: 55227

Get the row id of the current item in ListView

This is my list view item:
alt text
I want to put an OnClickListener on the Checkbox. But I need to get the list item that the CheckBox is in, via row id. How can I do that in the onClick method.

Upvotes: 0

Views: 830

Answers (1)

fedj
fedj

Reputation: 3452

In the bindView method, you have to put a click listener on each checkbox

Upvotes: 2

Related Questions