I\'m trying to implement a smooth animation for my ProgressBar, but when I increase the time (30 seconds), the animation is no longer smooth.
Example wi
If you have Android N and above, you can use :
progressBar.setProgress(newProgress, true)
Docs:
Sets the current progress to the specified value, optionally animating the visual position between the current and target values.
Animation does not affect the result of getProgress(), which will return the target value immediately after this method is called.
https://developer.android.com/reference/android/widget/ProgressBar.html#setProgress(int,%20boolean)