您的位置:首页 > 移动开发 > Android开发

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐