制作游戏页面时隐藏状态栏
- 在需要隐藏状态栏的activity中添加代码:
supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
//隐藏状态栏
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
比如像这样: