安卓第一行代码之百分比布局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>
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>
相关文章推荐
- android 百分比布局percentFrameLayout,percentRelativeLayout的使用
- 百分比布局PercentRelativeLayout - 简单使用
- Android百分比布局:PercentRelativeLayout
- 使用Java动态设置官方百分比布局PercentRelativeLayout的heightPerce
- Android百分比布局:PercentRelativeLayout
- 百分比布局(PercentFrameLayout和PercentRelativeLayout)
- Android百分比布局:PercentRelativeLayout
- Android Percent Layout 安卓百分比布局
- android百分比布局PercentRelativeLayout
- PercentRelativeLayout百分比布局
- 百分比布局PercentRelativeLayout
- Android常用的五大布局:LinearLayout/RelativeLayout/AbsoluteLayout/ TableLayout/FrameLayout
- android 百分比布局(percentLayout),妈妈再也不用担心适配问题了
- 纯代码RelativeLayout实现右上角布局
- 安卓初学一之布局RelativeLayout和linearlayout
- 代码布局relativeLayout的位置设置
- 安卓布局:线性布局(Linearlayout)和相对布局(RelativeLayout)
- android PercentRelativeLayout 支持百分比来设置控件的宽高
- 《Android 第一行代码之百分比布局》
- Java代码使用LayoutParams改变RelativeLayout 中的控件布局