首页 > 代码库 > Android:percent 布局
Android:percent 布局
Android 新引入的布局,百分比布局,Percent 布局
主要分为两种:PercentFrameLayout he PercentRelativeLayout 布局
通过 support 库引入,
在 module 的 gradle 中加入 compile:com.android.support.percent:24.2.1
主要新加入的属性:
app:layout_widthPercent
app:layout_heightPercent
不需要指定宽和高了,只需要指定在父布局的百分比,配合 layout_gravity 可以达到希望的布局。
Android:percent 布局
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。