tabhost-在LinearLayout中更改了子级的视图顺序
|
我似乎无法解决我的TabHost布局应该是一个简单问题的问题。我在docs中构造了xml:
<?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\">
<LinearLayout
android:orientation=\"vertical\"
android:layout_width=\"fill_parent\"
android:layout_height=\"fill_parent\">
<TabWidget android:id=\"@android:id/tabs\"
android:layout_width=\"fill_parent\"
android:layout_height=\"wrap_content\">
</TabWidget>
<FrameLayout android:id=\"@android:id/tabcontent\"
android:layout_width=\"fill_parent\"
android:layout_height=\"fill_parent\">
<ListView android:id=\"@+id/favouriteslist\"
style=\"@style/POITab_Lists\">
</ListView>
<ListView android:id=\"@+id/recentlist\"
style=\"@style/POITab_Lists\">
</ListView>
</FrameLayout>
</LinearLayout>
</TabHost>
但是我的FrameLayout出现在我的TabWidget之前,排挤了一下:
这在我看来很不寻常-有人有什么想法吗?
没有找到相关结果
已邀请:
1 个回复
郸身