After Android4.0
General Full-screen:
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
| view.invisible);
The full-screen hand slide will bring up the status bar and navigation button.
In the source code can be added:
GetWindow (). Getdecorview (). setsystemuivisibility ( view.status_bar_disable_expand | View.status_bar_disable_notification_icons | View.status_bar_disable_notification_alerts | View.status_bar_disable_system_info | View.status_bar_disable_home | View.status_bar_disable_recent | View.status_bar_disable_back | 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 | view.invisible);
This is the real full screen, unable to call home, etc.
Android Activity Settings fullscreen