Android百分比适配

来源:互联网 发布:绣花打板软件 编辑:程序博客网 时间:2024/05/09 15:23
  • http://blog.csdn.net/lmj623565791/article/details/46767825


  • 两种布局供大家使用: 
    PercentRelativeLayoutPercentFrameLayout,通过名字就可以看出,这是继承自FrameLayoutRelativeLayout两个容器类;

  • 支持的属性有:

layout_widthPercentlayout_heightPercent、 
layout_marginPercentlayout_marginLeftPercent、 
layout_marginTopPercentlayout_marginRightPercent、 
layout_marginBottomPercentlayout_marginStartPercentlayout_marginEndPercent

build.gradle添加:

compile 'com.android.support:percent:22.2.0'

0 0
原创粉丝点击