ShapeBlurView icon indicating copy to clipboard operation
ShapeBlurView copied to clipboard

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

Open MrUncleX opened this issue 2 years ago • 0 comments

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


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

MrUncleX avatar Jan 11 '23 06:01 MrUncleX