在列表视图中,在迭代列表视图时检查单个复选框时会检查多个项目,我猜测只有我创建了具有唯一ID的单个复选框并通过列表视图对其进行迭代的猜测
That's probably because of view recycling .. you should use view holder and check for position before setting the checkbox..
check http://lucasr.org/2012/04/05/performance-tips-for-androids-listview/
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.