Android 圆角布局Layout控件,支持RoundLinearLayout与RoundRelativeLayout
1. 为什么要写这个圆角控件正常来说我们只需要在drawable文件夹下创建以下xml文件,然后在布局文件中background属性指定一下就可以将布局设置为圆角。<shape xmlns:android="http://schemas.android.com/apk/res/android"> <solid android:color="@android:color/blue" /> <corners android:radius="22dip"/>
原创
2020-08-12 15:27:17 ·
3021 阅读 ·
0 评论