StupidBeauty
Read times:793Posted at:Sat Aug 31 21:05:43 2013
- no title specified

转载:如何代码设置屏幕背光亮度?

使用WindowManager可设置当前Acitivity的屏幕亮度。

http://www.eoeandroid.com/thread-226573-1-1.html

亮点:

单个activity中的背光控制。
A.屏幕
WindowManager.LayoutParams params = getWindow().getAttributes();
params.flags |= WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON;
params.screenBrightness = 0;
getWindow().setAttributes(params);

忙得冒屎的办公室女郎

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4