StupidBeauty
Read times:1003Posted at:Wed Feb 20 01:20:30 2013
- no title specified

转载 全屏和隐藏标题栏的方法

使用requestWindowFeature方法来设置与窗口系统相关的属性,例如全屏,例如无标题。

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

亮点:

//全屏

  1. 1.public void setFullscreen() {

  2. 2. requestWindowFeature(Window.FEATURE_NO_TITLE);

  3. 3. getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,

  4. 4. WindowManager.LayoutParams.FLAG_FULLSCREEN);

  5. 5. }

  6. 6.

  7. 7.//无标题

  8. 8. public void setNoTitle() {

  9. 9. requestWindowFeature(Window.FEATURE_NO_TITLE);

  10. 10. }

Olivia Alaina May

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