手机
当前位置:查字典教程网 >编程开发 >安卓软件开发 >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开发优化之:软引用与弱引用的应用

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

Android多屏幕适配

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

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

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

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

Android开发笔记 改变字体颜色的三种方法

精品推荐
分类导航