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>