1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3     android:layout_width="fill_parent" 4     android:layout_height="fill_parent" 5     android:orientation="vertical" > 6  7     <TabHost 8         android:id="@android:id/tabhost" 9         android:layout_width="fill_parent"10         android:layout_height="fill_parent" >11 12 <!-- TabWidget默认置于FrameLayout之上,使用LinearLayout可以将其置于FrameLayout之下。且没加这个LinearLayout,标签和内容页会重叠 -->13         <LinearLayout14             android:layout_width="fill_parent"15             android:layout_height="fill_parent"16             android:gravity="center"17             android:orientation="vertical" >18 19             20             21             <FrameLayout22                 android:id="@android:id/tabcontent"23                 android:layout_width="fill_parent"24                 android:layout_height="wrap_content"25                 android:layout_gravity="center_vertical"26                 android:layout_weight="1"27                 android:gravity="center_vertical" >28             </FrameLayout>29             30             <TabWidget31                 android:id="@android:id/tabs"32                 android:layout_width="fill_parent"33                 android:layout_height="52dip"34                 android:layout_weight="0">35             </TabWidget>36             37             38          39         </LinearLayout>40     </TabHost>41 42     43     44 </LinearLayout>

更多相关文章

  1. android如何调用显示和隐藏系统默认的输入法
  2. android如何调用显示和隐藏系统默认的输入法
  3. [轉] android默认debug.keystore的密码
  4. Android应用模块基本配置元素
  5. android google map apiKey 相关操作
  6. 调整Android音量等级及默认音量
  7. Android(Java):按钮复选框点中效果
  8. 启动android默认浏览器
  9. Android默认时区、语言设置

随机推荐

  1. android菜瓜笔记之android lint problem
  2. Android图形---OpenGL(二)
  3. BroadcastReceiver注册的两种方法
  4. andoird添加log4j日志
  5. Android(安卓)studio Mac版 安装及使用记
  6. Gradle添加so文件
  7. android布局全屏显示,状态栏和导航栏透明
  8. Android-FrameWork原理与架构分析
  9. android 使用Webview时候清楚缓存各种方
  10. Android(安卓)NavigationDrawer(侧滑导航