tabhost置底
原创
©著作权归作者所有:来自51CTO博客作者王村桥的原创作品,请联系作者获取转载授权,否则将追究法律责任
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TextView
android:id="@+id/tvgc"
android:gravity="center"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#DCDCDC"
android:text="藁城手机网欢迎你" />
<ImageView
android:id="@+id/imggc"
android:gravity="center"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:src="@drawable/gc"
android:adjustViewBounds="true"
android:scaleType="fitXY" />
<TabHost
android:id="@+id/tabhost1"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_weight="1" />
<TabWidget android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#FFFFFF" />
</LinearLayout>
</TabHost>
</LinearLayout>
</RelativeLayout>
//tabcontent与tabwidget交换位置, android:layout_weight="1"
上一篇:首屏动画及验证网络状态跳转
下一篇:activity 基类 通用
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
OpenKruise :Kubernetes背后的托底
OpenKruise的出现弥补了 Kubernetes 在应用部署、升级、防护、运维等领域的不足。
Pod Deployment 运维 OpenKruise Kubernetes -
2.单链表逆置
单链表逆置
单链表逆置 List -
Android TabHost
Android TabHost
Android Tabhost -
TabHost介绍
TabHost组件可以在界面中存放多个选项卡, 很多软件都使用了改组件进行设计;1. TabHost常用组件TabWidget : 该组件就是TabHost标
TabHost介绍 选项卡 android 布局文件 -
TabHost用法
通常情况下我们会通过继承TabActivity,调用getTabHost()获取TabHost实例,下面是具体过程。TabHostActivity.javapublic class Ta
移动开发 java android ico xml -
[element-ui] 滚动条el-scrollbar置底
【代码】[element-ui] 滚动条el-scrollbar置底。
javascript vue.js 开发语言