我想重複我的應用程序中的每個活動我的標籤頁腳。Android Tab喜歡頁腳
我使用這個代碼
<TabHost
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_above="@android:id/tabs" />
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true" />
</RelativeLayout>
</TabHost>
,我要添加組件,如ListView控件,按鈕等我的標籤爲每個佈局的頂部。我怎樣才能管理這個?
使用[ActivityGroup](http://stackoverflow.com/q/4601475/593709),雖然現在已經摺舊了。 – 2011-12-30 16:54:13