手机
当前位置:查字典教程网 >编程开发 >安卓软件开发 >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计算pad或手机的分辨率/像素/密度/屏幕尺寸/DPI值的方法

android如何短时间音效播放实现SoundPool

在Android本地视频播放器开发

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

Android 监听apk安装替换卸载广播的实现代码

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

android滑动解锁震动效果的开启和取消

Android开发中比较耗时的一些操作小结

Android 九宫格的实现方法

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

精品推荐
分类导航