RectF rectBlackBg1 = new RectF(15, 15, mWidth - 15, mHeight - 15); canvas.drawArc(rectBlackBg1, 145, 250, false, mPaint); mPaint.setStrokeWidth((float) 40.0); RectF rectBlackBg = new RectF(40, 40, mWidth - 40, mHeight - 40); canvas.drawArc(rectBlackBg, 145, 250, false, mPaint);