Draw a hollow circle on an Android Canvas
问题 I am working on creating a custom view where a user can select an angle. Below is an example of what the end result should look like: I am achieving this with the following code: mPaint.setColor(Color.BLACK); canvas.drawCircle((int) (mSize.right / 2), (int) (mSize.bottom / 2), mWidthOutside, mPaint); mPaint.setColor(Color.LTGRAY); canvas.drawCircle((int) (mSize.right / 2), (int) (mSize.bottom / 2), mWidthInside, mPaint); The problem with doing it this way, is the background is a static LTGRAY