android - Immersive Full Screen Mode (Sticky flag) disabled when i open a spinner -
I use the inversive fullscreen mode with the sticky flag tool, these four settings Fourth of the explanation here:
I am doing this:
if (Build.VERSION.SDK_INT> = 1 9) {// Es Meyer o Egial API 19 Katak Okltamos Las Barras UI Dell system mainBody.setSystemUiVisibility (256 // SYSTEM_UI_FLAG_LAYOUT_STABLE | 512 // SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | 1024 // SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | 2 // SYSTEM_UI_FLAG_HIDE_NAVIGATION // hide the navigation bar | 4 // SYSTEM_UI_FLAG_FULLSCREEN // hide status Board | 4096 // Sistm_ui_flag_immersive_stiki); } And in my manifestation it is at the application level:
Android: Theme = "@Android: style / theme.No title bar. Fullscreen" It works fine, but my app has a spinner, and when I touch the spinner, immersive mode is disabled !!!
P> same problem .. See also here < P> The closest I came to solve it (in my
activity ) adding the full screen flag, and when the activity is turned off Focus after closing: Private zero goFullScreen () {// The spinner window will be shown only when the window is opened. AddFlags (WindowManager.LayoutParams.FLAG_FULLSCREEN); . GetWindow () getDecorView () setSystemUiVisibility (yourFlags). } @ Override Resume at zero () {super.onResume (); go fullscreen(); } @ Override Public Wide On Wandows Focus Change (Boolean Half Focus) {// Full Screen Again When Spinner Closes (Haifocus) {goFullScreen (); }} Yes, this is an alternative solution. I will try to expand the spinner .
Comments
Post a Comment