checkbox in listview for multiple selection of contacts

前端 未结 3 1681
轮回少年
轮回少年 2020-12-18 16:12

I had tried to to put checkbox in listview through layout inflator and I got success but the problem is when I select the multiple contacts there is no problem but when I de

3条回答
  •  孤城傲影
    2020-12-18 16:52

    The cause of this is that when you call nameCheckBox.setChecked() in code OnClickListener() awakes and run its code. I had the same problem an solved in just setting OnClickListener(null) before set a checkbox checked or not.

提交回复
热议问题