Created
April 24, 2018 12:31
-
-
Save vorobeij/c8b4cae8e1ed1eb043b52bbe8656a776 to your computer and use it in GitHub Desktop.
progress
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"?> | |
| <!-- | |
| Duration = 1 means that one rotation will be done in 1 second. leave it. | |
| If you want to speed up the rotation, increase duration value. | |
| in example 1080 shows three times faster revolution. | |
| make the value multiply of 360, or the ring animates clunky | |
| --> | |
| <rotate xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:fromDegrees="720" | |
| android:pivotX="50%" | |
| android:pivotY="50%" | |
| android:duration="10" | |
| android:toDegrees="-720" > | |
| <shape | |
| android:innerRadiusRatio="3" | |
| android:shape="ring" | |
| android:thicknessRatio="8" | |
| android:useLevel="false" > | |
| <size | |
| android:height="48dip" | |
| android:width="48dip" /> | |
| <gradient | |
| android:centerY="0.50" | |
| android:endColor="#00ffffff" | |
| android:startColor="#ffffff" | |
| android:type="sweep" | |
| android:useLevel="true" /> | |
| </shape> | |
| </rotate> |
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
| <ProgressBar | |
| android:id="@+id/rv_progress" | |
| style="?android:attr/progressBarStyle" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:indeterminate="true" | |
| android:indeterminateDrawable="@drawable/progress" | |
| app:layout_constraintBottom_toBottomOf="parent" | |
| app:layout_constraintEnd_toEndOf="parent" | |
| app:layout_constraintStart_toStartOf="parent" | |
| app:layout_constraintTop_toTopOf="parent" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment