0
votes

I want to create a segmented circular progress bar to behave like a count down timer, such that each segment has its own time limit.

There is one iOS app pTimer+ and I want to make similar countdown timer in Android.

pTimer+
(source: jiaojianli.com)

So far I am able to achieve circular progress bar that behaves like countdown timer but has no concept of segments or blocks.

Clock

2

2 Answers

0
votes

use this link - I need to design this "red" percentage circle dynamically in that you can change the color of the progress bar bases on the progress.

Hope it helps.

Edit: For Initializing the Progress bar with color segments you can try using the following code.

<gradient
android:angle="0"
android:centerX="50%"
android:centerColor="@color/green"
android:startColor="@color/orange"
android:endColor="@color/red"
android:type="linear"
/>
0
votes

Maybe this library can help. It has circular-segment progress bar and it is easily customizable library: Android-progressviewslib