Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

仿真翻页动画clipPath方法中的参数Region.Op.XOR在Android.P后不再支持,仿真翻页效果异常 #17

Open
274800562 opened this issue Nov 18, 2019 · 0 comments

Comments

@274800562
Copy link

canvas.clipPath(mPath0, Region.Op.XOR);
clipPath方法内部有调用checkValidClipOp()方法。
private static void checkValidClipOp(@nonnull Region.Op op) {
if (sCompatiblityVersion >= Build.VERSION_CODES.P
&& op != Region.Op.INTERSECT && op != Region.Op.DIFFERENCE
) {
throw new IllegalArgumentException(
"Invalid Region.Op - only INTERSECT and DIFFERENCE are allowed");
}
}
API版本大于28时,只支持Region.Op.INTERSECT和Region.Op.DIFFERENCE,不支持Region.Op.XOR,差集效果怎么实现?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant