StupidBeauty
Read times:1030Posted 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