软件编程
位置:首页>> 软件编程>> Android编程>> android 选项卡(TabHost)如何放置在屏幕的底部

android 选项卡(TabHost)如何放置在屏幕的底部

  发布时间:2023-07-09 21:19:59 

标签:选项卡,TabHost,屏幕底部

今天写Tab的时候由于TAB的跳转问题去查资料,倒反而发现更有趣的问题,就是如何将TAB放置在屏幕的底端。


<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_weight="1"
android:padding="5dp" />
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
</LinearLayout>
</TabHost>
0
投稿

猜你喜欢

手机版 软件编程 asp之家 www.aspxhome.com