how to hide navbar androoid websites code example

Example 1: android studio remove navigation bar

protected void onResume() {
        super.onResume();
        View decorView = getWindow().getDecorView();
        // Hides the status and navigation bar until the user clicks
        // on the screeen.
        int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
                | View.SYSTEM_UI_FLAG_FULLSCREEN;
        decorView.setSystemUiVisibility(uiOptions);

Example 2: how to hide divi menu on scroll

/**
 * Header Styles
 */
#main-header {
 -webkit-transition: all 0.2s;
 -moz-transition: all 0.2s;
 transition: all 0.2s;
}
 
#main-header.invisible {
 opacity: 0;
 top: -1000% !important;
}
 
.et-fixed-header#main-header {
 opacity: 0;
}
 
#main-header.detached {
 position: fixed !important;
 top: 0;
 opacity: 1 !important;
}

Tags:

Java Example