手机
当前位置:查字典教程网 >编程开发 >安卓软件开发 >android 选项卡(TabHost)如何放置在屏幕的底部
android 选项卡(TabHost)如何放置在屏幕的底部
摘要:今天写Tab的时候由于TAB的跳转问题去查资料,倒反而发现更有趣的问题,就是如何将TAB放置在屏幕的底端。复制代码代码如下:

今天写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>

【android 选项卡(TabHost)如何放置在屏幕的底部】相关文章:

android listview 水平滚动和垂直滚动的小例子

Android基础之使用Fragment适应不同屏幕和分辨率

Android 内存泄漏的几种可能总结

Android创建或升级数据库时执行的语句

android 开发教程之日历项目实践(二)

Android中实现EditText圆角的方法

Android裁剪图片为圆形图片的实现原理与代码

Android编程设置全屏的方法实例

更换android(安卓)系统菜单/背景图片的方法

Android 如何收集已发布程序的崩溃信息

精品推荐
分类导航