SoFunction
Updated on 2025-04-06

How to remove the bottom virtual navigation bar in full screen of android

As shown below:

@Override
public void onWindowFocusChanged(boolean hasFocus) {
(hasFocus);
if (hasFocus) {
getWindow().getDecorView().setSystemUiVisibility(
View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_FULLSCREEN | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY);
}
}

The above method to remove the bottom virtual navigation bar in full screen of Android is all the content I share with you. I hope you can give you a reference and I hope you can support me more.