使用layout_weight做布局
来源:互联网 发布:淘宝哪家锂电池好 编辑:程序博客网 时间:2024/05/29 18:55
布局的画面如下:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:context=".MainActivity" > <ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1" android:src="@drawable/psb" /> <FrameLayout android:layout_width="fill_parent" android:layout_height="100dp" android:layout_weight="1" android:orientation="horizontal" > <View android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#EDEDED" /> <LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center" android:orientation="horizontal" > <Button android:layout_width="wrap_content" android:layout_height="48dp" android:layout_weight="1" android:text="海涛" /> <Button android:layout_width="wrap_content" android:layout_height="48dp" android:layout_weight="1" android:text="海欢" /> <Button android:layout_width="wrap_content" android:layout_height="48dp" android:layout_weight="1" android:text="国柱" /> <Button android:layout_width="wrap_content" android:layout_height="48dp" android:layout_weight="1" android:text="付店" /> <Button android:layout_width="wrap_content" android:layout_height="48dp" android:layout_weight="1" android:text="周洼" /> </LinearLayout> </FrameLayout></LinearLayout>
FR:海涛高软 (QQ技术交流群:386476712)
1 0
- 使用layout_weight做布局
- Android布局学习四:layout_weight 的使用
- linearlayout布局中layout_weight使用问题
- 在android布局中使用layout_weight的几点技巧和说明layout_weight
- android LinearLayout布局中layout_weight的使用(一)
- android LinearLayout布局中layout_weight的使用(二)
- Android按比例布局之layout_weight和weightSum的使用
- 安卓-使用layout_weight属性自定义标题栏布局
- 【Android】安卓开发实战之使用layout_weight优化布局
- layout_weight使用
- Android 布局 Layout_weight 详解
- android布局---android:layout_weight
- Android布局之layout_weight
- layout_weight="" 布局
- LinearLayout布局的Layout_weight
- LinearLayout布局的Layout_weight
- 布局属性layout_weight解析
- 使用RecycleView做网格布局
- Linux-CentOS6.7——yum源的更换
- HTML三大列表小事例
- iOS状态栏的管理
- android studio开发<十二> WebView访问网页和安卓权限
- 比锂电池便宜 96%,本田找到了更好用的镁电池
- 使用layout_weight做布局
- Java GC
- 【转载】智能合约简介
- 归档接档实现收藏 数据保存
- 关于数位板怎么用,电脑绘画入门篇
- CSS之简易相册
- iOS APP提示升级直接跳转到AppStore
- 成都男子电脑文件被病毒绑架 解密需3个比特币
- oracle 12c Single Instance to Single Instance的Active Database Duplicate测试