lopspower / CircularProgressBar

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

Add possibility to change DEFAULT_ANIMATION_DURATION #36

Closed Kolyall closed 4 years ago

Kolyall commented 5 years ago

Add possibility to change DEFAULT_ANIMATION_DURATION, because I want to create indeterminate ProgressBar, but in result "loading" process looks like it is slow

Kolyall commented 5 years ago

I want to increase speed

lopspower commented 4 years ago

You can change the duration of your animation with setProgressWithAnimation:

val duration = 1000 // 1s
circularProgressBar.setProgressWithAnimation(65f, duration)

because I want to create indeterminate ProgressBar

The indeterminate mode already exists: circularProgressBar.indeterminateMode = true