简体   繁体   中英

Unchecking the checked checkboxes while scolling the list in Android?

我的问题是在gridview中选中的复选框列表,在滚动列表时,那些选中的复选框变成了未选中的复选框。

Shiva,

If you are using custom Adapter for your list,then you can implement an ArrayList to keep track of the CheckBox State. And in your getView() function of Adapter, set your CheckBox true/false according to the ArrayList. This is a starting point for your problem. I hope you can figure out the rest. If you still have any problem, you can ask.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM