<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:layout_height="match_parent"
android:layout_width="match_parent"
android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android">
<android.support.v4.view.ViewPager
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<android.support.design.widget.TabLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/tab_layout"/>
</android.support.v4.view.ViewPager>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:id="@+id/fragment_layout"
android:layout_weight="8"/>
<RadioGroup
android:layout_width="match_parent"
android:layout_height="0dp"
android:orientation="horizontal"
android:id="@+id/radio_group"
android:layout_weight="1">
<RadioButton
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent"
android:id="@+id/radio_button2"
android:gravity="center"
android:button="@null"
android:drawableTop="@drawable/background"
android:text="热评"/>
<RadioButton
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent"
android:id="@+id/radio_button3"
android:gravity="center"
android:button="@null"
android:drawableTop="@drawable/background"
android:text="生活"/>
<RadioButton
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent"
android:id="@+id/radio_button4"
android:gravity="center"
android:button="@null"
android:drawableTop="@drawable/background"
android:text="娱乐"/>
<RadioButton
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="match_parent"
android:id="@+id/radio_button1"
android:gravity="center"
android:button="@null"
android:drawableTop="@drawable/background"
android:text="军事"/>
</RadioGroup>
</LinearLayout>