参考自:《Android RadioGroup中设置默认选中RadioButton 后,选中两个的问题 解决方法》
问题:项目中遇到多个RadioGroup中单选RadioButton ,设置了默认选中第一个 . 然后就能选中两个RadioButton。
解决:
不要设置RadioButton的默认选中, 这样会使RadioButton一直处于选中状态。
使用RadioGroup.check(RadioButton.getId()); 代替: RadioButton.setCheck(true);