質問

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

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top