滚动列表时复选框在列表视图自动检查。 [英] Check box checked Automatically in listview when scrolling the list.
本文介绍了滚动列表时复选框在列表视图自动检查。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个问题,我有自定义列表视图
与复选框
。
I have one problem, i have customize listview
with checkbox
.
当我滚动项目的一些复选框
自动为检查
不点击复选框
。
When i scroll the items the some checkbox
is automatically checked
without clicking on checkbox
.
任何一个能帮助我吗?
推荐答案
这意味着,瓯选择一个复选框和Android将随机选择,你应该使用...
It means that ou select one checkbox and android will select randomly for that you should use...
if(tempVector.get(position)){
holder.box.setChecked(true);
}
else{
holder.box.setChecked(false);
}
试试这个,它为我工作。
Try this, it works for me.
这篇关于滚动列表时复选框在列表视图自动检查。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文