手机
当前位置:查字典教程网 >编程开发 >安卓软件开发 >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开发中比较耗时的一些操作小结

android,不显示标题的方法小例子

android TextView设置中文字体加粗实现方法

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

Android多屏幕适配

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

Android自定义格式显示Button的布局思路

android中添加按钮事件的方法

Android 将TabHost放在最下方显示

android平台获取手机所在位置经纬度

精品推荐
分类导航