现在的位置: 首页 > 综合 > 正文

RadioGroup中多个RadioButton被选中的解决方法

2013年10月12日 ⁄ 综合 ⁄ 共 135字 ⁄ 字号 评论关闭

如果在Java代码直接设置RadioButton的Checked方法,那么这个RadioButton就永远被选中了。

解决方法使用((RadioButton) RadioGroup.getChildAt(0)).setChecked(true);来选中RadioButton

抱歉!评论已关闭.