开发者

Get the row id of the current item in ListView

开发者 https://www.devze.com 2023-01-12 01:56 出处:网络
This is my list view item: I want to put an OnClickListener on the Checkbox. But I need to get the list item that the CheckBox is 开发者_JAVA百科in, via row id. How can I do that in the onClick meth

This is my list view item:

Get the row id of the current item in ListView

I want to put an OnClickListener on the Checkbox. But I need to get the list item that the CheckBox is 开发者_JAVA百科in, via row id. How can I do that in the onClick method.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消