notifyDataSetChanged for multiple checkboxes

后端 未结 7 1515
一向
一向 2020-12-10 14:09

\"multiple_checkboxes\"

In attached image, SelectAll checkbox is present with in an activity, and

相关标签:
7条回答
  • 2020-12-10 15:01

    You can make an array of booleans corresponding to list of items and in the adapter you should toggle the boolean values accordingly checked/unchecked, and in adapter on each and every check that is all elements of boolean array is true? then setchecked(true) the selectall_checkbox else keep it setchecked(unchecked).

    0 讨论(0)
提交回复
热议问题