我可以为特定的Android路径设置填充颜色,如下所示。
mPaint.setStyle(Paint.Style.STROKE);
mPaint.setColor(0xffffffff);
canvas.drawPath(path, mPaint);
mPaint.setStyle(Paint.Style.FILL);
mPaint.setColor(0xFF555555);
mPaint.setStrokeWidth(2);
canvas.drawPath(path, mPaint);
在画布上绘制路径后,我想更改特定区域的颜色。有没有办法用android Regions
代替Paths