The following code to introduce the Android status bar micro-technique, the code is relatively short, but its micro-skills are expressed, together through the code to learn.
@Override public
void Onwindowfocuschanged (Boolean hasfocus) {
super.onwindowfocuschanged (hasfocus);
if (Hasfocus && Build.VERSION.SDK_INT >=) {
View Decorview = GetWindow (). Getdecorview ();
Decorview.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 is a small set to introduce the Android status bar micro-skills, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!