按比例布局
来源:互联网 发布:mysql删除自增长 编辑:程序博客网 时间:2024/05/16 05:03
依赖:
compile 'com.android.support:percent:22.2.0'
<android.support.percent.PercentRelativeLayout xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent"> <View android:id="@+id/a1" android:layout_width="0dp" android:layout_height="0dp" android:background="#00ff00" app:layout_heightPercent="20%" app:layout_widthPercent="70%"/> <View android:layout_width="0dp" android:layout_height="0dp" android:layout_toRightOf="@+id/a1" android:background="#ffff00" app:layout_heightPercent="40%" app:layout_widthPercent="20%"/> </android.support.percent.PercentRelativeLayout>
0 0
- 按比例布局
- Android按比例布局
- Android按比例布局
- Android按比例布局
- QGridLayout按比例设定布局
- xib等按比例布局
- Android 线性布局按比例显示
- LinearLayout使用weightSum按比例布局
- Android中元素按比例布局
- LinearLayout使用weightSum按比例布局
- ios Autolayout 按比例相对布局
- 安卓按比例布局,layout_weight用法
- (转)android 按比例布局 适应不同分辨率
- Android 控件在布局中按比例放置 (
- Qt的QGridLayout按比例设定布局
- 安卓按比例布局,layout_weight用法
- 【移动开发】按比例布局layout_weight和weightSum
- Qt的QGridLayout按比例设定布局
- How Does Linphone Toggle SIP Contact?
- Android应用程序打包时,出现错误:"XXX" is not translated in "af" (Afrikaans), "am" (Amharic), "ar" (Arabic).....
- Spring配置文件中突然出现异常Referenced file contains errors
- ASP.NET导入Excel到数据库(SQL)
- CorePlot学习
- 按比例布局
- 数据挖掘中,分类与聚类的区别
- JAVA_OPTS各参数的含意及配置
- hdu 3394 railway (BCC缩点)
- 时间戳转换
- jdbctemplate 使用多表查询List
- EXTJS4 新特性之Ext.data.Model
- PHP Warning: Unknown: It is not safe to rely on the system's timezone settings. You are *required*
- 介绍新GRE填空技巧之理清思路