<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#99CCFF" />
<corners android:topLeftRadius="20dp"
android:topRightRadius="20dp"
android:bottomRightRadius="20dp"
android:bottomLeftRadius="20dp"/>
<stroke android:width="1dp" android:color="#000000" />
</shape>
在drawable里面创建round.xml,然后在布局文件里面直接设置background="@drawable/round"即可使用
Android圆角边框代码实现
最新推荐文章于 2023-05-09 10:19:55 发布