Android Question Draw partial circle

JohnC

Expert
Licensed User
Longtime User
I want to draw a count-down timer circle so I'll have full control over how much of the circle is drawn, similar to this:

timer.png


(Dashed line is not required - I actually prefer a solid line)

I also need to be able to place whatever text I want inside the circle.

I did a search and came across this post:
And tried the DrawArc because it looked like something that would work because it has "StartDegree" and "EndDegree".

But it drew the curve with a straight line going from the starting deg to the ending deg so that didn't work.

I haven't done a lot of graphics programming in the past, and I'm hoping there is an easy solution.

Thanks for any help.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
CircularProgressBar_B4i.gif


And with gradient:
SS-2019-04-03_17.36.00.png
 
Upvote 0
Top