思路:
1:将GridView中所有CheckBox的状态都设置为未选中
2:设置GridView的item点击事件 将当前点击的下标传至适配器中:


3:判断( 将点击item中的CheckBox状态设置选中状态之后 其余设置为未选中状态)

思路:
1:将GridView中所有CheckBox的状态都设置为未选中
2:设置GridView的item点击事件 将当前点击的下标传至适配器中:
3:判断( 将点击item中的CheckBox状态设置选中状态之后 其余设置为未选中状态)
本文标题:(功能实现)GridView+CheckBox实现单选效果
本文链接:https://www.haomeiwen.com/subject/xaoapttx.html
网友评论