Android 如何将Include标记与TabHost组合?
如何在每页的底部包含选项卡栏Android 如何将Include标记与TabHost组合?,android,android-layout,Android,Android Layout,如何在每页的底部包含选项卡栏 <?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_
<?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">
<include
layout="@layout/title_bar" />
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1" />
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="0" />
</LinearLayout>
</TabHost>
你可能需要提供更多的细节:你所说的页面是什么意思?如果只是XML,那么使用TagHost,但是Tabhost是根级别的元素吗?你不觉得困惑吗?很可能!这就是为什么我建议提供更多关于你的情况的细节。