I've implemented a circular progress bar that fills up in 10 seconds time. However, I think the bar fills up quicker in the beginning, and, as a result, it slows down (the animation of it filling) as the time goes on. In addition, at the end, it stops for moment and then finally finishes. The code I used I got from the first answer here: How to Create a circular progressbar in Android which rotates on it?
And then my code which starts the progress bar is:
ProgressBar progressBar = (ProgressBar) findViewById(R.id.progressBar);
ObjectAnimator animation = ObjectAnimator.ofInt (progressBar, "progress", 0, 100);
animation.setDuration (10000);
animation.setInterpolator (new DecelerateInterpolator());
animation.start();
How can I make the animation smoother?