Listview + checkbox

前端 未结 2 1826
醉梦人生
醉梦人生 2021-01-27 04:03

I\'m trying to do a listview with a checkbox but i can\'t do it. I don\'t know how i can implement the listener that tell me if the ckeckbox is selected or isn\'t selected.

2条回答
  •  醉话见心
    2021-01-27 04:28

    Check this tutorial it explains holder pattern in listView Tutorial

    Also remember that you need to assign any onClickListener or onCheckListener in getView() method of your adapter

提交回复
热议问题