Listview's checked items not there after scrolling

前端 未结 3 1336
挽巷
挽巷 2021-01-07 06:48

I have created a listview with textview and checkbox. However after scrolling the list down(or up) all the checked items in the list get unselected. How to make the checked

3条回答
  •  庸人自扰
    2021-01-07 07:28

    You need to save the state of your list when you make any changes in the list. You have to maintain an arrayList of your checkedItems. This Post might prove to be more helpful in this regard..

提交回复
热议问题