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

给父view或者根view设置饱和度后部分机型滚动会卡顿,高斯模糊部分也有点问题 #13

Open
MrUncleX opened this issue Jan 11, 2023 · 0 comments

Comments

@MrUncleX
Copy link

       不是很明白为何有这个影响。期待大佬回复


        // 一键置灰 公祭模式 rootView为高斯模糊的父布局或者根布局都会出现。。
        Paint paint = new Paint();
        ColorMatrix cm = new ColorMatrix();
        cm.setSaturation(0);
        paint.setColorFilter(new ColorMatrixColorFilter(cm));
        rootView.setLayerType(View.LAYER_TYPE_HARDWARE, paint);
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