可以在Android模拟器中测试屏幕亮度变化吗?我尝试了各种使用以下代码片段的示例:
WindowManager.LayoutParams lp = window.getAttributes();
lp.screenBrightness = (*some float percentage*);
window.setAttributes(lp);
Run Code Online (Sandbox Code Playgroud)
但我没有看到模拟器中亮度有任何变化.我用蛋糕和2.2测试了它.
android ×1