第一步:XMl布局
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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"
tools:context="com.example.a26027.androidxiaoshixun1.MainActivity">
<RadioGroup
android:layout_width="match_parent"
android:layout_alignParentBottom="true"
android:orientation="horizontal"
android:layout_height="wrap_content"
android:id="@+id/rg">
<RadioButton
android:id="@+id/tv1"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:drawableTop="@drawable/tabtp2"
android:text="故事"
android:gravity="center"
android:button="@null"
android:layout_weight="1"/>
<RadioButton
android:id=&#