Code

Code

Hiding the Navigation Bar in Android

View decorView = getWindow().getDecorView();
int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
              | View.SYSTEM_UI_FLAG_FULLSCREEN;
decorView.setSystemUiVisibility(uiOptions);

https://developer.android.com/training/system-ui/navigation.html#behind