How do I maintain the Immersive Mode in Spinner?
问题 I use immersive-sticky mode to hide the navigation bar and action bar: @TargetApi(19) private void setImmersiveMode() { if (Build.VERSION.SDK_INT >= 19) { View decorView = getWindow().getDecorView(); int uiOptions = getImmersiveUiOptions(decorView); decorView.setSystemUiVisibility(uiOptions); ActionBar actionBar = getActionBar(); if (null!=actionBar) { actionBar.hide(); } } } When a Spinner is touched, the navigationBar is shown and immersive mode is disabled. This solution works for Dialogs: