Last active
October 28, 2015 08:18
-
-
Save vivekgidmare/8e23149b1e7f17d4bfad to your computer and use it in GitHub Desktop.
Circular Progress ring customization for usage see comment
This file contains hidden or 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:toDegrees="720"> | |
| <!--To Increase speed increase toDegree value in multiple of 360--> | |
| <shape | |
| android:innerRadius="20dp" | |
| android:shape="ring" | |
| android:thickness="3dp" | |
| android:useLevel="false"> | |
| <size | |
| android:width="48dp" | |
| android:height="48dp" /> | |
| <gradient | |
| android:centerColor="#80FFC107" | |
| android:centerY="0.5" | |
| android:endColor="#ffFFC107" | |
| android:startColor="#00FFC107" | |
| android:type="sweep" | |
| android:useLevel="false"></gradient> | |
| </shape> | |
| </rotate> | |
| <!--Use as :: android:indeterminateDrawable="@drawable/progress_ring_bg"--> |
vivekgidmare
commented
Oct 28, 2015
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment