WindowManager.LayoutParams lp = getWindow().getAttributes(); lp.screenBrightness =1.0f; getWindow().setAttributes(lp); 其中 1.0 是亮 0.0 是表示暗