android 选项卡(TabHost)如何放置在屏幕的底部
下面是个超简单的android 选项卡(TabHost)如何放置在屏幕的底部教程,图老师小编精心挑选推荐,大家行行好,多给几个赞吧,小编吐血跪求~
代码如下:
?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





