I know how to change brightness of entire window:
float brightness = 255;
brightness = brightness / (float) 255;
WindowManager.LayoutParams lp = getWindow().getAttributes();
lp.screenBrightness = brightness;
getWindow().setAttributes(lp);
but is it possible to set brightness to different parts of the screen?
I want reach something like this:
or this:
Android API doesn't provide any means to achieve that(I've head a similar problem. Didn't find any solution).