Frage

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

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top