本文资源摘自轻微课(www.qingwk.com),图侵删
常用配色一览
xml范例
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    <!-- 形状-->
    android:shape="rectangle">
    
    <!-- 描边-->
    <stroke
        android:color="@color/white"
        android:width="1dp"
        <!-- 虚线宽度及密度-->
        android:dashWidth="10dp"  
        android:dashGap="1dp" />
    <!-- 圆角-->
    <corners
        android:radius="5dp"/>
    <!-- 渐变-->
    <gradient
        android:type="line"  
        android:angle="45"
        android:startColor="@color/"
        android:centerColor="@color/" 
        android:endColor="@color/"/>
    <!-- 内部填充-->
     <solid
        android:color="@color/white"/>
</shape>
快捷定位1

快捷定位2

快捷定位3

快捷定位4

快捷定位5

快捷定位6

快捷定位7

快捷定位8

快捷定位9
