最重要的就是FrameLayout的属性android:layout_weight="1" ,只要稍微布局即可、其他的和顶部TabHost一样

<TabHostxmlns:android="http://schemas.android.com/apk/res/android"android:id="@android:id/tabhost"android:layout_width="fill_parent"android:layout_height="fill_parent"><LinearLayoutandroid:orientation="vertical"android:layout_width="fill_parent"android:layout_height="fill_parent">      <!--  android:layout_weight="1"  --><FrameLayoutandroid:id="@android:id/tabcontent"android:layout_width="fill_parent"android:layout_height="fill_parent"android:layout_weight="1" /><TabWidgetandroid:id="@android:id/tabs"android:layout_width="fill_parent"android:layout_height="wrap_content" /></LinearLayout></TabHost>


更多相关文章

  1. Android--取得布局中指定控件的宽高
  2. android计算器布局(TableLayout)
  3. android自定义属性 format类型
  4. Android:configChanges 属性
  5. Android View类属性及方法
  6. Android中的visibility属性的区别

随机推荐

  1. Android中Fragment碎片解析
  2. Android(安卓)UI之Tab(TabActivity+TabHo
  3. 关于android的各种花式键盘问题
  4. 模拟用户点击,“去除”USB弹框
  5. Android(安卓)API Guides---App Widget H
  6. Android(安卓)Studio 下debug情况下直接
  7. 卡拉OK歌词原理和实现高仿Android网易云
  8. Android实现一个简单的SQLite数据库的增
  9. Android自定义View --来回滚动背景
  10. Android(安卓)Alert Dialog解决点击按钮