<shape xmlns:android="http://schemas.android.com/apk/res/android"
Shape
>
<!-- 填充 -->
<solid android:color="#ff9d77" /> <!-- 定义填充的颜色值 -->
<!-- 描边 -->
<stroke
android:width="2dp"
android:dashGap="3dp"
android:color="#fad3cf" /> <!-- 定义描边的宽度和描边的颜色值 android:dashWidth表示'-'这样一个横线的宽度,android:dashGap表示之间隔开的距离-->
<!-- 圆角 -->
<corners
android:bottomLeftRadius="5dp"
android:bottomRightRadius="5dp"
android:topLeftRadius="5dp"
android:topRightRadius="5dp" /> <!-- 设置四个角的半径 (也可以直接设置 Radius:10dp)-->
<!-- 间隔 -->
<padding
android:bottom="10dp"
android:left="10dp"
android:right="10dp"
android:top="10dp" />
</shape>
Shape
>
<!-- 填充 -->
<solid android:color="#ff9d77" /> <!-- 定义填充的颜色值 -->
<!-- 描边 -->
<stroke
android:width="2dp"
android:dashGap="3dp"
android:color="#fad3cf" /> <!-- 定义描边的宽度和描边的颜色值 android:dashWidth表示'-'这样一个横线的宽度,android:dashGap表示之间隔开的距离-->
<!-- 圆角 -->
<corners
android:bottomLeftRadius="5dp"
android:bottomRightRadius="5dp"
android:topLeftRadius="5dp"
android:topRightRadius="5dp" /> <!-- 设置四个角的半径 (也可以直接设置 Radius:10dp)-->
<!-- 间隔 -->
<padding
android:bottom="10dp"
android:left="10dp"
android:right="10dp"
android:top="10dp" />
</shape>