注意是字体颜色,而不是背景颜色
要注意的有:
1.字体颜色这里是color,而不是textColor
2.在设置RadioButton的时候,是给android:textColor设置上状态选择器,而不是android:background,要不然就出错
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
android:id="@+id/rb_login_mp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true"
android:text="名片"
android:textColor="@drawable/shape_login_radiobutton_select" />
android:id="@+id/rb_login_gw"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="岗位"
android:textColor="@drawable/shape_login_radiobutton_select" />