1.布局
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context="com.bwei.lenovo.day11_myapp.Activity.HomeActivity">
<FrameLayout
android:id="@+id/home_frame"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"></FrameLayout>
<RadioGroup
android:id="@+id/home_rg"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<RadioButton
android:background="@drawable/home_seletor1"
android:id="@+id/home_rb1"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_weight="1"
android:button="@null"
android:checked="true" />
<RadioButton
android:background="@drawable/home_seletor2"
android:id="@+id/home_rb2"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_weight=