Skip to content Skip to sidebar Skip to footer

Circular Progress Bar Progressing Like Pie Chart

I have a progress bar whose progressdrawable 'drawable/circle_progress.xml' is: Copy

In order to update the progress every second, I call setLevel() on the PieProgressDrawable instance and then invalidate() on the ImageView that hosts this PieProgressDrawable instance. Like this:

pieProgressDrawable.setLevel(progress);
timeProgress.invalidate();

In case someone needs some guidance I wrote a tutorial about it here.

Post a Comment for "Circular Progress Bar Progressing Like Pie Chart"