-2

I would like to create drawables like the following so that I can adjust the colour at run time.

Drawable when the colour is selected Drawable when the colour is not selected

I can easily create the drawable with a stroke around a colour but all it does is create the line on the edge of the circle, but I need to have the white line on the inside with the same colour as the center on the outside?

Anyone have any ideas?

Thanks

Community
  • 1
  • 1
Stillie
  • 2,647
  • 6
  • 28
  • 50

1 Answers1

1

I think this is what you are looking for.

You basically override the onDraw method of your view and call drawCircle(x, y, radius, paint) with the parameters on the link.

Luís Gonçalves
  • 338
  • 5
  • 17