How to draw a circle with a transparent middle

Viewed 24259

I am trying to draw a white circle with the following code:

mPaint.setColor(0xFFFFFFFF);
canvas.drawCircle(x, y, radius, mPaint);

But it is being displayed as a solid disk. How do I get it to just display as a circular outline with a transparent centre?

I've had a look in the help and it makes no sense to me, probably because I'm not used to the drawing terms like stroke and dither. What's wrong with background and border, eh?

1 Answers
Related