1、效果图
只是简单写了一个点击文字变色 图片变色 背景变色
2、xml
四个重复太多 所以只写了一个RadioButton 注意:RadioButton写在RadioGroup里
<RadioButton
android:id="@+id/btn_one"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:button="@null"
android:drawableTop="@drawable/check_icom"
android:textColor="@color/radiobutton_textcolor"
android:checked="true"
android:layout_weight="1"
android:background="@drawable/colorbackground"
android:text="首页"/>