1. Introduction
In Android apps, some require full screen, no status bar (System status bar), title bar (ActionBar), and navigation bar (Navigation bar), which is the Google API Immpresion mode as defined in the. This pattern is often used by game applications.
There are also applications that need to switch between full-screen and non-full-screen modes, such as video players.
2. UI Flag
(1) Display statusbar and Navigation Bar
Mshowflags = View.system_ui_flag_layout_fullscreen | View.system_ui_flag_layout_hide_navigation | view.system_ui_flag_layout_stable; Manchorview.setsystemuivisibility (Mshowflags);
(2) HideStatusBar and Navigation Bar
Mhideflags = View.system_ui_flag_low_profile | View.system_ui_flag_layout_fullscreen | View.system_ui_flag_fullscreen | View.system_ui_flag_immersive | View.system_ui_flag_layout_hide_navigation | view.system_ui_flag_hide_navigation; Manchorview.setsystemuivisibility (Mhideflags);
3.ActionBar OverLay
Set Actionbar to: floating on top of view
Requestwindowfeature (Window.feature_action_bar); Requestwindowfeature (Window.feature_action_bar_overlay);
Andriod full screen processing (video player)