Full Screen and non-full screen of the application, full screen of the application
/*** Full screen display */private void setFullSreen () {WindowManager. layoutParams params = getWindow (). getAttributes (); params. flags | = WindowManager. layoutParams. FLAG_FULLSCREEN; getWindow (). setAttributes (params); getWindow (). addFlags (WindowManager. layoutParams. FLAG_LAYOUT_NO_LIMITS); // getWindow (). getDecorView (). setSystemUiVisibility (View. SYSTEM_UI_FLAG_FULLSCREEN); // The Activity is displayed in full screen and the status bar is overwritten.}/*** exit full screen */ Private void exitFullSreen () {WindowManager. LayoutParams params = getWindow (). getAttributes (); params. flags & = (~ WindowManager. layoutParams. FLAG_FULLSCREEN); getWindow (). setAttributes (params); getWindow (). clearFlags (WindowManager. layoutParams. FLAG_LAYOUT_NO_LIMITS); // getWindow (). getDecorView (). setSystemUiVisibility (View. SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN); // The Activity is displayed in full screen mode, but the status bar is not overwritten. It is displayed normally, but the layout at the top of the Activity is overwritten}