效果:

corner.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<solid android:color="#ffffff" />
<corners
android:bottomLeftRadius="20dp"
android:bottomRightRadius="20dp"
android:topLeftRadius="20dp"
android:topRightRadius="20dp" />
</shape>
android:background="@drawable/corner"
本文介绍了一种使用XML定义圆角矩形的方法,并提供了一个具体的示例。通过设置四个角的半径来创建一致的圆角外观。
520

被折叠的 条评论
为什么被折叠?



