private void setWindowBrightness(int brightness) { Window window = getWindow(); WindowManager.LayoutParams lp = window.getAttributes(); lp.screenBrightness = brightness / 255.0f; window.setAttributes(lp); }
调节当前页面的屏幕亮度
最新推荐文章于 2022-04-20 12:13:32 发布