Skip to content

Instantly share code, notes, and snippets.

@Danc-0
Created March 25, 2021 15:53
Show Gist options
  • Save Danc-0/54e753436577fe9bc40884b1122a43d3 to your computer and use it in GitHub Desktop.
Save Danc-0/54e753436577fe9bc40884b1122a43d3 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@android:id/secondaryProgress">
<shape
android:shape="ring"
android:thickness=".8dp"
android:useLevel="true">
<gradient
android:centerColor="#F1C1B2"
android:endColor="#F1C1B2"
android:startColor="#F1C1B2"
android:type="sweep" />
</shape>
</item>
<item android:id="@android:id/progress">
<rotate
android:fromDegrees="270"
android:pivotX="50%"
android:pivotY="50%"
android:toDegrees="270">
<shape
android:shape="ring"
android:thickness=".8dp"
android:useLevel="true">
<corners
android:radius="40dp" />
<rotate
android:fromDegrees="0"
android:pivotX="50%"
android:pivotY="50%"
android:toDegrees="360" />
<gradient
android:centerColor="@color/pink"
android:endColor="@color/pink"
android:startColor="@color/pink"
android:type="sweep" />
</shape>
</rotate>
</item>
</layer-list>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment