7
A
回答
23
請檢查此鏈接:How to align your TabHost at the bottom of the screen
添加機器人:layout_alignParentBottom =爲TabWidget 「真」的伎倆。
6
只需將內容佈局放置在選項卡窗口小部件上方即可。 請參閱以下鏈接瞭解更多信息。 Android: Tabs at the BOTTOM
2
<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="1dp" >
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:padding="5dp" >
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="5dp" />
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true" />
</RelativeLayout>>
</TabHost>
是否可以在ActionBarActivity中使用TabHost? – 2013-11-20 09:35:59