写在setContentView()前面
this.requestWindowFeature(Window.FEATURE_NO_TITLE);//去掉标题栏
全屏:写在setContentView()前面
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
写在setContentView()前面
this.requestWindowFeature(Window.FEATURE_NO_TITLE);//去掉标题栏
全屏:写在setContentView()前面
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
转载于:https://www.cnblogs.com/YyuTtian/p/5393524.html