RadionButton

RadionButton(单项按钮)
       RadioGroup(单选按钮组)
            android:orientation="horizontal"  //设置布局方式
            android:checkedButton="单选按钮id"//设置默认选中的单选按钮

注意:单选按钮RadioButton,一般需要嵌套在RadioGroup中达到单选的目的
     方法:getCheckedRadioButtonId();//获得选中的按钮的id

原文地址:https://www.cnblogs.com/yinhua7896/p/6872525.html