<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">

    <item android:id="@android:id/background">
        <shape>
            <corners android:radius="@dimen/dp_5" />
            <!--    背景颜色-->
            <solid android:color="@color/white" />
        </shape>
    </item>

    <item android:id="@android:id/progress">
        <clip
            android:clipOrientation="horizontal"
            android:gravity="left">
            <shape>
                <corners android:radius="@dimen/dp_5" />
                <!--  开始颜色，中途颜色，最后颜色-->
                <gradient
                    android:centerColor="#FFFF00"
                    android:endColor="#FF0000"
                    android:startColor="#00FF00" />
            </shape>
        </clip>
    </item>
</layer-list>
