【发布时间】:2011-06-23 17:16:41
【问题描述】:
【问题讨论】:
【问题讨论】:
参考下面的 xml ... 现在如果你想把你的选项卡放在底部,只需将你的 tabwidget 移动到 Framelayout 下方(相对地),因为 tabwidget 和 Framelayout 在相对布局内。
<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">
<RelativeLayout
android:layout_width="fill_parent" android:layout_height="fill_parent">
<TabWidget android:id="@android:id/tabs"
android:layout_alignParentBottom="true"
android:background="#FFFFFF"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_marginLeft="0dip" android:layout_marginRight="0dip" />
<FrameLayout android:id="@android:id/tabcontent"
android:background="#00FFFF"
android:layout_width="fill_parent" android:layout_height="wrap_content" />
</RelativeLayout>
</TabHost>
</LinearLayout>
【讨论】: