Newer
Older
RxSprout / app / src / main / res / drawable / progress.xml
<?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="5dip" />
        <gradient
                android:startColor="#666666"
                android:centerColor="#222222"
                android:centerY="0.75"
                android:endColor="#666666"
                android:angle="270"
        />
    </shape>
</item>

  <!-- android:secondaryProgress用のDrawable -->
  <item android:id="@android:id/secondaryProgress">
    <clip>
        <shape>
            <corners android:radius="5dip" />
            <gradient
                    android:startColor="#80ffd300"
                    android:centerColor="#80ffb600"
                    android:centerY="0.75"
                    android:endColor="#a0ffcb00"
                    android:angle="270"
            />
        </shape>
    </clip>
</item>

  <!-- android:progress用のDrawable -->
  <item
    android:id="@android:id/progress">
    <clip>
        <shape>
            <corners
                android:radius="5dip" />
            <gradient
                    android:startColor="#ff33dd44"
                    android:centerColor="#ff0A8815"
                    android:centerY="0.75"
                    android:endColor="#ff1da130"
                    android:angle="270"
            />
        </shape>
    </clip>
</item>

</layer-list>