您的位置:首页 > 编程语言

安卓第一行代码之百分比布局PercentFrameLayout/PercentRelativeLayout

2018-03-30 15:39 375 查看
在compile中引入:

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

使用百分比布局:
<android.support.percent.PercentFrameLayout
xmlns:app="http://schemas.android.com/apk/res-apk"
>
    <Button
    ···

    app:layout_widthPercent="50%"
    app:layout_heightPercent="50%"

    />

</android.support.percent.PercentFrameLayout>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: