Created
December 13, 2021 04:18
-
-
Save EHG613/48c159dc78156d669c17a068ff1e3f73 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Paint paint=new Paint(); | |
ColorMatrix cm = new ColorMatrix(); | |
cm.setSaturation(0); | |
paint.setColorFilter(new ColorMatrixColorFilter(cm)); | |
getWindow().getDecorView().setLayerType(View.LAYER_TYPE_HARDWARE,paint); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment