一 //隐藏标题
requestWindowFeature(Window.FEATURE_NO_TITLE);
//定义全屏参数
int flag = WindowManager.LayoutParams.FLAG_FULLSCREEN;
//获得窗口对象
Window myWindow = this.getWindow();
//设置Flag标识
myWindow.setFlags(flag, flag);
requestWindowFeature(Window.FEATURE_NO_TITLE);
//定义全屏参数
int flag = WindowManager.LayoutParams.FLAG_FULLSCREEN;
//获得窗口对象
Window myWindow = this.getWindow();
//设置Flag标识
myWindow.setFlags(flag, flag);
setContentView(R.layout.activity_splash);
在 AndroidManifest.xml 文件中 application 节点加入 android:theme="@android:style/Theme.NoTitleBar"
二、在 AndroidManifest.xml 文件中 application 节点加入 android:theme="@android:style/Theme.NoTitleBar.Fullscreen"