Skip to content

Instantly share code, notes, and snippets.

@Antarix
Last active October 19, 2020 20:26
Show Gist options
  • Save Antarix/7562092 to your computer and use it in GitHub Desktop.
Save Antarix/7562092 to your computer and use it in GitHub Desktop.
Android ProgressBar indeterminateDrawable
<?xml version="1.0" encoding="utf-8"?>
<rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:fromDegrees="0"
android:pivotX="50%"
android:pivotY="50%"
android:duration="1" <!-- Duration = 1 means that the rotation will be done in 1 second-->
android:toDegrees="360" <!--increase duration if you want to speed up the rotation-->
>
<shape
android:innerRadiusRatio="3"
android:shape="ring"
android:thicknessRatio="8"
android:useLevel="false" >
<size
android:height="48dip"
android:width="48dip" />
<gradient
android:centerColor="#f96047"
android:centerY="0.50"
android:endColor="#fb9c8d"
android:startColor="#f72d0c"
android:type="sweep"
android:useLevel="false" />
</shape>
</rotate>
@NiklasLehnfeld
Copy link

You should consider to write your comment in xml comment style like:

<!-- This is a comment -->

@Antarix
Copy link
Author

Antarix commented Oct 8, 2020

You should consider to write your comment in xml comment style like:

<!-- This is a comment -->

Updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment