0
如何更改android中的TabHost,使其看起来与iPhone中的UITabBarController相同?即查看应该在TabHost的顶部,而不是在底部。在Android中更改TabHost中的视图
如何更改android中的TabHost,使其看起来与iPhone中的UITabBarController相同?即查看应该在TabHost的顶部,而不是在底部。在Android中更改TabHost中的视图
下面是一个示例布局代码来对屏幕底部的标签:
<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">
<LinearLayout android:orientation="vertical"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<FrameLayout android:id="@android:id/tabcontent"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_weight="1">
</FrameLayout>
<TabWidget android:id="@android:id/tabs"
android:layout_width="fill_parent" android:layout_height="65dp"
android:layout_marginLeft="0dip" android:layout_marginRight="0dip"
android:layout_weight="0"></TabWidget>
</LinearLayout>
</TabHost>
为我工作完美。谢谢.. – PgmFreek 2011-05-13 04:06:37