当前位置: 移动技术网 > IT编程>移动开发>Android > android 选项卡(TabHost)如何放置在屏幕的底部

android 选项卡(TabHost)如何放置在屏幕的底部

2019年07月24日  | 移动技术网IT编程  | 我要评论

司司,生甘草的作用与功效,apsapiyunpingtai

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

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网