作用:
requestWindowFeature(featrueId),它的功能是启用窗体的扩展特性。参数是Window类中定义的常量
requestWindowFeature()设置应放在setContentView(R.layout.activity_main);前面,否则程序会异常退出.
属性: requestWindowFeature(Window.FEATURE_NO_TITLE);无标题
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
全屏
效果:
默认
无标题
全屏
状态栏:requestWindowFeature()方法作用(状态栏处理,全屏)
原文:http://blog.csdn.net/christine_ruan/article/details/18667415