android - How to make a circular progressBar like telegram? -


i want determinate circular progress bar telegram android app cant find in project sources.

enter image description here

and rotating

enter image description here

update: using material progress not rotate in determinate mode, want rotate while loading... telegram app.

create rotate.xml in 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" /> 

load anim , run in code:

view.startanimation(animationutils.loadanimation(activity, r.anim.rotate)); 

Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -