7
从下面的.xml文件中我设置xml来显示TabHost,但在模拟器上运行它后,它显示两个方向。我想将它设置为仅显示一个方向。我该怎么做?谢谢。如何设置android显示垂直方向?
<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:orientation="vertical">
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<FrameLayout android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
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>
有没有办法在清单全球做到这一点? – shim 2012-12-11 06:20:59
如果它的一个碎片碎片没有在清单内注册,该怎么办? – 2013-08-12 17:00:17