@Override protected void onDraw(Canvas canvas) { Paint paint = mPaint; canvas.drawColor(0xFFCCCCCC); canvas.translate(20, 20); paint.setAntiAlias(true); showPath(canvas, 0, 0, Path.FillType.WINDING, paint); showPath(canvas, 160, 0, Path.FillType.EVEN_ODD, paint); showPath(canvas, 0, 160, Path.FillType.INVERSE_WINDING, paint); showPath(canvas, 160, 160, Path.FillType.INVERSE_EVEN_ODD, paint); } }
@Override protected void onDraw(Canvas canvas) { Paint paint = mPaint; canvas.drawColor(0xFFCCCCCC); canvas.translate(20, 20); paint.setAntiAlias(true); showPath(canvas, 0, 0, Path.FillType.WINDING, paint); showPath(canvas, 160, 0, Path.FillType.EVEN_ODD, paint); showPath(canvas, 0, 160, Path.FillType.INVERSE_WINDING, paint); showPath(canvas, 160, 160, Path.FillType.INVERSE_EVEN_ODD, paint); } }