tabhost置底
16lz
2021-01-26
<?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=\'#\'" /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"
更多相关文章
- Android监测手机网络状态变化的广播
- Android(安卓)手机端与服务器端通过http交换数据 Json
- 关于手机网页viewpoint缩放适配各种机型各种浏览器的总结
- Android(安卓)DragAndDrop API 拖拽效果 交换ListView的Item值
- 取得Wear OS和Android对话:通过可穿戴数据层交换信息
- Android之监测手机网络状态的广播
- android Parcelable进程间通信
- [毕业设计-基于android的手机网盘的设计与实现] java中文件的soc
- android实现携程购票起始点位置交换