Question

I would like to create a custom shaped progressbar, which would change color according to its progress (but this is almost a different question..).

So what would be the best way to create a custom shaped progressbar like the one on the image below (sorry for bad MS Paint drawing skills):

custom shaped progressbar

Was it helpful?

Solution

To have all possibilities you should create a custom class derived from progressbar and completely override the onDraw() Method. to draw the Arch on the side you can use canvas.drawArc() and to change the color of the bar you can simply adjust the Paint Color.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top