【文件属性】:
文件名称:圆角imageview
文件大小:3KB
文件格式:JAVA
更新时间:2021-08-05 16:49:34
圆角
对imageview切圆角, @Override
public void draw(Canvas canvas) {
canvas.saveLayer(0, 0, getWidth(), getHeight(), null, Canvas.ALL_SAVE_FLAG);
super.draw(canvas);
if (maskColor != 0) {
canvas.drawColor(maskColor);
}
canvas.drawPath(mClipPath, mPaint);
canvas.restore();
}