Bwlow code is increasing the brightness of whole screen but I am taking a particular region in XML (like taking Linear Layout of 100*100), and I want to increase the brightness of that particular (Linear Layout) region only not the whole screen.
getWindow().setAttributes(l);
WindowManager.LayoutParams l = getWindow().getAttributes();
lll8.screenBrightness = 1.0f;
getWindow().setAttributes(l);