listView高度控制 底部tabhost标签 用android:layout_below="@+id/tab_all"
2012-12-20 14:48
573 查看
<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
相关文章推荐
- 代码中控制TabHost中标签Tab的高度和宽度(Android)
- 代码中控制TabHost中标签Tab的高度和宽度(Android)
- android:layout_above="@+id/XXX"与android:layout_below="@+id/XXX"写法的区别
- Android布局文件id出错android:layout_below="@id/search_btn"
- TabHost requires a TabWidget with id "android:id/tabs" 报错解决办法
- 【Android应用开发技术:用户界面】底部Tab标签设计方案一:FragmentTabHost+Fragment
- 解决:[Android UI界面] 创建TabHost XML图形视图一直出错看不到内容?TabHost requires a TabWidget with id "android:id/tabs".
- Android底部和标签导航栏—TabLayout+Fragment
- android:layout_above="@id/xxx"  --将控件置于给定ID控件之上android:layout_below="@id/xxx"  -
- Android中自定义tabhost的TAB页面被选中时TAB底部的颜色
- android 使用Tabhost 发生could not create tab content because could not find view with id 错...
- listView 中relativeLayout 布局的 android:layout_alignParentBottom="true" 无效的解决办法
- TabHost和android:layout_height="0.0dip"以及android:layout_weight配合在布局中的使用
- 【FastDev4Android框架开发】Android Design支持库TabLayout打造仿网易新闻Tab标签效果(三十七)
- Android 底部TabActivity(2)——ActivityGroup|顶部底部均有Tab标签之一
- android <xliff:g id="x" />标签说明
- [ERROR]Your TabHost must have a TabWidget whose id attribute is 'android.R.id.tabcontent'
- android中控制ListView宽度和高度
- android 使用Tabhost 发生could not create tab content because could not find view with id 错误
- Android之Tab分页标签的实现方法一-----TabActivity和TabHost的结合(二)