Last active
October 19, 2020 20:26
-
-
Save Antarix/7562092 to your computer and use it in GitHub Desktop.
Android ProgressBar indeterminateDrawable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
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
You should consider to write your comment in xml comment style like: