//隐藏状态栏
//定义全屏参数
int flag= WindowManager.LayoutParams.FLAG_FULLSCREEN;
//获得当前窗体对象
Window window=MainActivity.this.getWindow();
//设置当前窗体为全屏显示
window.setFlags(flag, flag);
隐藏状态栏
最新推荐文章于 2024-05-11 03:57:58 发布