正文  基础知识 > 程序示例 >

全屏显示窗口(不显示标题栏)

protected void onCreate{ requestWindowFeature(Window.FEATURE_NO_TITLE); setConten...

protected void onCreate{
  requestWindowFeature(Window.FEATURE_NO_TITLE);
  setContentView(R.layout.main);  
  getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
}