lopspower / CircularProgressBar

Create circular ProgressBar in Android ⭕
Apache License 2.0
1.73k stars 223 forks source link

Restart animation #35

Closed eldarovich99 closed 5 years ago

eldarovich99 commented 5 years ago

How to restart animation? setProgressWithAnimation(float progress) just do nothing. I need it for progressbar for recyclerview because I don't want recreate progressbar just to show animation.

lopspower commented 5 years ago

You can play with the value of the progress. If you want to restart animation from 0 to 50 for example. You can set the progress to 0 without animation and used setProgressWithAnimation to 50.

eldarovich99 commented 5 years ago

You can play with the value of the progress. If you want to restart animation from 0 to 50 for example. You can set the progress to 0 without animation and used setProgressWithAnimation to 50.

Thanks, it works. Can I launch animation with indeterminate mode?

lopspower commented 5 years ago

I'm not sure to understand your question. "indeterminate mode" it's an animation. Play with the sample to see all the action you can do.