Skip to content

Instantly share code, notes, and snippets.

@MostafaGad1911
Created June 11, 2023 13:43
Show Gist options
  • Save MostafaGad1911/9cfc2bd4adf50d85b730d8ab3c2542d9 to your computer and use it in GitHub Desktop.
Save MostafaGad1911/9cfc2bd4adf50d85b730d8ab3c2542d9 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:innerRadiusRatio="3"
android:shape="ring"
android:thicknessRatio="20.0"
android:useLevel="true">
<gradient
android:centerColor="@color/light_gray"
android:endColor="@color/light_gray"
android:startColor="@color/light_gray"
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:innerRadiusRatio="3"
android:shape="ring"
android:thicknessRatio="20.0"
android:useLevel="true">
<rotate
android:fromDegrees="0"
android:pivotX="50%"
android:pivotY="50%"
android:toDegrees="360" />
<gradient
android:centerColor="#337EBC"
android:endColor="#3E98E3"
android:startColor="#3E98E3"
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