Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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="8"
- android:shape="ring"
- android:useLevel="true"
- android:thicknessRatio="20.0"
- android:thickness="3.8sp">
- <gradient
- android:startColor="@color/colorAccent"
- android:endColor="@color/colorAccent"
- android:centerColor="@color/colorAccent"
- 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="8"
- android:shape="ring"
- android:useLevel="true"
- android:thickness="3.8sp"
- android:thicknessRatio="20.0">
- <rotate
- android:fromDegrees="0"
- android:toDegrees="360"
- android:pivotX="50%"
- android:pivotY="50%" />
- <gradient
- android:startColor="@color/colorPrimary"
- android:endColor="@color/colorPrimary"
- android:centerColor="@color/colorPrimary"
- android:type="sweep" />
- </shape>
- </rotate>
- </item>
- </layer-list>
- <ProgressBar
- android:id="@+id/nextOkeKeyProgressBar"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_centerInParent="true"
- style="?android:attr/progressBarStyleHorizontal"
- android:clickable="false"
- android:indeterminate="false"
- android:max="30"
- android:progress="0"
- android:visibility="visible"
- android:progressDrawable="@drawable/circular_progress_bar"/>
- ObjectAnimator animation = ObjectAnimator.ofInt(findViewById(R.id.nextOkeKeyProgressBar), "progress", 0, 30);
- animation.setDuration(990);
- animation.setInterpolator(new DecelerateInterpolator());
- animation.start();
Add Comment
Please, Sign In to add comment