单页
setContentView方法前加入
requestWindowFeature(Window.FEATURE_NO_TITLE);
//定义全屏参数
int flag = WindowManager.LayoutParams.FLAG_FULLSCREEN;
//获得窗口对象
Window window = this.getWindow();
//设置Flag标识
window.setFlags(flag, flag);
全局
Manifest主题切换为.NoTitleBar.Fullscreen