-
Notifications
You must be signed in to change notification settings - Fork 257
Open
Description
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.O_MR1) {
canvas.drawPath(path, paint);
} else {
srcPath.addRect(srcRectF, Path.Direction.CCW);
// 计算tempPath和path的差集
srcPath.op(path, Path.Op.DIFFERENCE);
canvas.drawPath(srcPath, paint);
srcPath.reset();//1
}
再onDraw方法中添加注释1处的代码就好了
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels