<RelativeLayout xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
tools:context=
".MainActivity"
>
<TabHost
android:id=
"@android:id/tabhost"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_alignParentLeft=
"true"
android:layout_alignParentTop=
"true"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
>
<TabWidget
android:id=
"@android:id/tabs"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:visibility=
"gone"
>
</TabWidget>
<FrameLayout
android:id=
"@android:id/tabcontent"
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_weight=
"1"
>
</FrameLayout>
<RadioGroup
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"bottom"
android:orientation=
"horizontal"
>
<RadioButton
android:id=
"@+id/maintab_radio_tab1"
style=
"@style/tab_button"
android:checked=
"true"
android:text=
"主页"
android:background=
"#ff00ff00"
/>
<RadioButton
android:id=
"@+id/maintab_radio_tab2"
style=
"@style/tab_button"
android:text=
"分页"
android:background=
"#ff00ff00"
/>
<RadioButton
android:id=
"@+id/maintab_radio_tab3"
style=
"@style/tab_button"
android:text=
"设置"
android:background=
"#ff00ff00"
/>
</RadioGroup>
</LinearLayout>
</TabHost>
</RelativeLayout>