Android 圆角矩形
效果:
corner.xml
[html] view plaincopy
<?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"
转载于:https://my.oschina.net/bv10000/blog/187579