1. <?xml version="1.0" encoding="utf-8"?> 
  2. <TabHost xmlns:android="http://schemas.android.com/apk/res/android" 
  3.    android:id="@android:id/tabhost" android:layout_width="fill_parent" 
  4.    android:layout_height="fill_parent"> 
  5.  <LinearLayout   
  6.    android:orientation="vertical" 
  7.    android:layout_width="fill_parent"   
  8.    android:layout_height="fill_parent"> 
  9.   <!-- 实现Tab标签的居底主要是通过设置属性 android:layout_weight="1" --> 
  10.   <!-- 还要注意FrameLayout标签的位置,要写在TabWidget标签的前面 --> 
  11.   <FrameLayout 
  12.    android:id="@android:id/tabcontent" 
  13.    android:layout_weight="1"   
  14.    android:layout_width="fill_parent" 
  15.    android:layout_height="fill_parent" /> 
  16.  
  17.   <TabWidget   
  18.    android:id="@android:id/tabs" 
  19.    android:layout_alignParentBottom="true"   
  20.    android:layout_width="fill_parent" 
  21.    android:layout_height="wrap_content" /> 
  22.  </LinearLayout> 
  23. </TabHost> 
  24.  
  25.  

 <!-- 实现Tab标签的居底主要是通过设置属性 android:layout_weight="1" -->
<!-- 还要注意FrameLayout标签的位置,要写在TabWidget标签的前面 -->