常用RadioGroup内部镶嵌RadioButton来实现各种单选效果。
常常会设定第一个RadioButton为初始选中项目。
但是刚开始开发时常常发现设置第一个RadioButton的checked为true后,RadioGroup的单选效果没有触发。RadioGroup的所有RadioButton都能被选中。
可能的解决方法:
为每个RadioButton增加id
常用RadioGroup内部镶嵌RadioButton来实现各种单选效果。
常常会设定第一个RadioButton为初始选中项目。
但是刚开始开发时常常发现设置第一个RadioButton的checked为true后,RadioGroup的单选效果没有触发。RadioGroup的所有RadioButton都能被选中。
可能的解决方法:
为每个RadioButton增加id
本文标题:android的RadioGroup在RadioButton的c
本文链接:https://www.haomeiwen.com/subject/gqhzvxtx.html
网友评论