屏幕亮度

private void SetBright(float light)
{
WindowManager.LayoutParams lp=getWindow().getAttributes();
lp.screenBrightness=light;
getWindow().setAttributes(lp);

}

//light 范围 0.0f~~1f

你可能感兴趣的:(屏幕亮度)