在onCreate()中加入如下代码:
Java代码 ?
requestWindowFeature(Window.FEATURE_NO_TITLE);?
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,?????????????????
? ? ? ? ? ? ? ? ? ? ? ? WindowManager.LayoutParams.FLAG_FULLSCREEN);?
?一定要写在setContentView()前。?
?
原文:http://nsd.iteye.com/blog/578384
?
?
?