android 底部选项卡(TabHost) android 选项卡(TabHost)怎样放置在屏幕的底部

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

android 底部选项卡(TabHost) android 选项卡(TabHost)怎样放置在屏幕的底部

  2021-03-19 我要评论
想了解android 选项卡(TabHost)怎样放置在屏幕的底部的相关内容吗,在本文为您仔细讲解android 底部选项卡(TabHost)的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:选项卡,TabHost,屏幕底部,下面大家一起来学习吧。
今天写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>

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们