📜  android studio 移除通知栏 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:24.352000             🧑  作者: Mango

代码示例1
protected void onResume() {
        super.onResume();
        View decorView = getWindow().getDecorView();
        // Hide the status bar.
        int uiOptions = View.SYSTEM_UI_FLAG_FULLSCREEN;
        decorView.setSystemUiVisibility(uiOptions);
    }