Android RadioGroup设置默认选中项

今天有人问。Android 里面

RadioGroup里面有两个RadioButton怎么设置默认值? 第一个RadioButton设置 android:checked="true" 属性后,两个RadioButton就不互斥了。
其实,这个问题的解决方式很简单,给你的两个RadioButton 添加 Id 就可以了。

原文地址:https://www.cnblogs.com/Jett/p/5477811.html