- <?xml version="1.0" encoding="utf-8"?>
- <shape xmlns:android="http://schemas.android.com/apk/res/android">
- <!--设置圆角-->
- <!-- 按顺序分别对应:左下角的角度、右下角的角度、左上角的角度、右上角的角度-->
- <corners
- android:bottomLeftRadius="@dimen/dp_1"
- android:bottomRightRadius="@dimen/dp_1"
- android:topLeftRadius="@dimen/dp_1"
- android:topRightRadius="@dimen/dp_1" />
- <!-- 设置边框大小与背景色-->
- <stroke
- android:width="2dp"
- android:color="@color/ColorGray" />
- <solid android:color="@color/white" />
- </shape>
|