Values disappearing from a Listview on Scroll - Android

前端 未结 3 2018
难免孤独
难免孤独 2020-12-20 04:18

I have a custom adapter extended from the SimpleCursorAdapter. Using this I\'m binding a ListView which contains a checkbox and Two textboxes. On opening the activity, the l

3条回答
  •  执念已碎
    2020-12-20 04:55

    You need to have an arraylist of the states of each item in the list,, then load these states each time the list item view is loaded.Do this by overriding GetView() method in the adapter and add your saved state to the list based on the item position

提交回复
热议问题