When scrolling custom ListView, the checkbox value changes

前端 未结 8 1940
不思量自难忘°
不思量自难忘° 2020-12-05 07:30


What I have: a custom listview with Textviews and checkbox.


Problem: Suppose my screen can show only 6 items of list at time, and
8条回答
  •  南方客
    南方客 (楼主)
    2020-12-05 07:42

    You didn't cover the case convertView != null, this is what happens when scrolling up and down. You should implement a way to recycle the convertView (better) or just ignore it and give a fresh View back in this case too (worse).

提交回复
热议问题