// 隐藏状态栏
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
// 恢复状态栏
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
// 恢复状态栏
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
评论