RadioGroup(单选按钮组):

  android:orientation="horizontal" //设置布局方式

  android:checkedButton="单选按钮id" //设置默认选中的单选按钮

注意:单选按钮RadioButton,一般需要嵌套在中达到单选的目的

 

方法:

getCheckedRadioButttonId();//获取选中的按钮的id

posted on 2017-05-21 12:00  逸果  阅读(426)  评论(0编辑  收藏  举报