WindowManager.LayoutParams layoutParams = getWindow().getAttributes();
layoutParams.buttonBrightness = value;
getWindow().setAttributes(layoutParams);
where value is float between 0 to 1, value of less than 0 to use the preferred default screen brightness.
No comments:
Post a Comment