Listview's checked items not there after scrolling
问题 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 checkboxes retain their state after scrolling? 回答1: ListView recycles the views every time it is scrolled. That's why the Check-boxes does not retain their states. To accomplish your task: Store the checked items in an array. When you click any checkbox in the listview, change the value of that particular item in the array