Hide bottom Virtual key navigation bar realizes full screen in two cases
The first type: Always hidden, not appearing when touching the screen
Workaround: set the following two parameters simultaneously
View.system_ui_flag_hide_navigation
View.system_ui_flag_immersive
Add the following code in the OnCreate method of the activity that needs to hide the virtual key navigation bar:
Window _window;
/**
* Hide pad Bottom Virtual key
*/
_window = GetWindow ();
Windowmanager.layoutparams params = _window.getattributes ();
Params.systemuivisibility = view.system_ui_flag_hide_navigation| view.system_ui_flag_immersive;
_window.setattributes (params);
The second type: hidden but appears when touching the screen
Workaround: set one of the following parameters
View.system_ui_flag_hide_navigation
Add the following code in the OnCreate method of the activity that needs to hide the virtual key navigation bar:
Window _window;
/**
* Hide pad Bottom Virtual key
*/
_window = GetWindow ();
Windowmanager.layoutparams params = _window.getattributes ();
params.systemuivisibility = view.system_ui_flag_hide_navigation;
_window.setattributes (params);
Android hidden bottom Virtual key navigation bar for full screen