How to make circular progress? How is the telegram?

I want a specific circular progress bar, for example, a telegram android application, but I can not find it in the project sources.

enter image description here

and he is spinning

enter image description here

Update: I am using material progress. But it does not rotate in a certain mode, that I want to rotate at boot time ... just like a telegram application.

+4
source share
1 answer

Create the rotate.xml file in the res / anim folder:

<?xml version="1.0" encoding="UTF-8"?>
<rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="1600"
android:fromDegrees="0"
android:interpolator="@android:anim/linear_interpolator"
android:pivotX="50%"
android:pivotY="50%"
android:repeatCount="infinite"
android:toDegrees="360" />

Download the animation and run the code:

view.startAnimation(AnimationUtils.loadAnimation(activity, R.anim.rotate));
+3
source

All Articles