G1的屏幕的分辨率是320×480,虽说不小但也谈不上大,所以有的应用要使用起来,最好还是希望把状态栏(Status Bar)和标题栏(Title Bar)也隐藏了,这样就可以有更大的屏幕空间给应用程序。


@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);

final Window win = getWindow();
// No Statusbar
win.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);

// No Titlebar
requestWindowFeature(Window.FEATURE_NO_TITLE);

setContentView(R.layout.mylayout);
}

摘自anddev

Tags:

31 Responses to “如何设置隐藏标题栏和状态栏?”

  1. 原来是这样弄的。





  2. If you are willing to buy real estate, you will have to get the business loans. Furthermore, my mother commonly utilizes a financial loan, which seems to be really useful.





  3. Hello! eadfddk interesting eadfddk site!

  4. Very nice site! cheap viagra

  5. Very nice site! [url=http://aixopey.com/qqatat/2.html]cheap cialis[/url]

  6. Very nice site! cheap cialis http://aixopey.com/qqatat/4.html

  7. Very nice site!

  8. Great post, and so very true.

  9. Hello! ecgegbk interesting ecgegbk site!

  10. Very nice site! cheap viagra

  11. Very nice site! [url=http://opeyixa.com/rvqatx/2.html]cheap cialis[/url]

  12. Very nice site! cheap cialis http://opeyixa.com/rvqatx/4.html

  13. Very nice site!


  14. http://www.roiding.com is very the most interesting. I loved your blog a lot. Thank you.

  15. This is alright.

  16. http://www.roiding.com is great! In this economy is it any wonder that its hard to make ends meet Sometimes you have a payday emergency and you need some cash right away We understand that and thats why we say if you need one of our short term payday loans you can come to us and well take care of you



  17. Can’t believe this!! Hope your weekend is better!!


  18. I can certainly understand how you feel.

  19. I see Good Times ahead!!

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>