单选按钮——RadioButton

一.RadioGroup:
属性 orientation:排列方式
1.若值为horizontal,则为横向,水平排列:
eg android:orientation=“horizontal”
单选按钮——RadioButton
2.若值为vertical,则为纵向,垂直排列:
eg android:orientation=“vertical”
单选按钮——RadioButton

二.checkedButton:默认选中

直接调用已经放入在radiogroup中且已有id的radiobutton即可默认选中此项。
  eg  android:checkedButton="@+id/A"
      单选按钮——RadioButton
三.RadioButton其他属性:
text等相关属性:
text是按钮的文本内容;
textSize是文本字体大小;
textColor是文本字体颜色······