<TabHost 
android:id="@+id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" 

>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<!-- RelativeLayout >>的下面是Tab 包裹的-->




<FrameLayout 
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent" 

>
<RelativeLayout
android:id="@+id/tab_all"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<!-- 第一个标签页布局 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<include android:id="@+id/tab1" layout="@layout/ex_tab1" /> 
<!-- 第二个标签页布局 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<include android:id="@+id/tab2" layout="@layout/ex_tab2" /> 
<!-- 第三个标签页布局~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<include android:id="@+id/tab3" layout="@layout/ex_tab3" /> 
</RelativeLayout>

</FrameLayout> 

<TabWidget
android:id="@android:id/tabs"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true" 
android:layout_below="@+id/tab_all"

/>
</RelativeLayout> 
</TabHost> 

 

第一个标签页布局  ex_tab1 里面有  listview


相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-04
  • 2021-07-31
  • 2021-08-12
  • 2021-07-01
  • 2021-10-21
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
  • 2022-12-23
  • 2021-09-11
相关资源
相似解决方案