想了很久很久了,主要还是太菜了
大侠们,帮帮忙
大侠们,帮帮忙
解决方案 »
- 自动适应屏幕大小问题?求大神们指点
- Android如何实现不同应用之间的调用
- android 取得正在监听某一端口(TCP/UDP)号的进程id
- 请问android手机,怎样才能在线播放windows media player视频?
- Activity之间切换的一个问题
- 每次启动都停在这Waiting for HOME ('android.process.acore') to be launched...
- android中的power键按键检测
- Android ffmpeg 取流解码显示
- 安卓阅读器实现长按后选择文字内容,并复制,分享等功能
- Android微信客户端菜单选项中的横线如何实现
- Android 蓝牙断开 资源释放问题
- 求命令行生成R文件详解。
<?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:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
/>
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView
android:id="@+id/textview1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="this is a tab" />
<TextView
android:id="@+id/textview2"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="this is another tab" />
<TextView
android:id="@+id/textview3"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="this is a third tab" />
</FrameLayout>
</LinearLayout>
</TabHost>
试了下,是可以的,可以做成选项卡在下面的效果,把上面的<LinearLayout></LinearLayout>布局
改成<RelativeLayout></RelativeLayout>就可以了.
所以android默认的tab就是在上面的。