stroke
线,这个要配合着width
corners
圆角,设置圆角大小
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<stroke android:color="#C3C3C3" android:width="1dp" /> //stroke 一定要写width度
<corners android:radius="15dp" />
</shape>