android-immersive

Android: Spinner dropdown in full screen

蹲街弑〆低调 提交于 2021-02-10 05:31:12
问题 I'm trying to open drop down spinner in full screen (immersive mode), but the issue is that when the drop down opens up it brings out translucent navigation bar at the bottom. The navigation bars hides when an option is selected, but remains visible as long as dropdown is visible. I was able to remove this behavior in dialog fragment since I have show(FragmentManager manager, String tag) method to override and add this getDialog().getWindow().getDecorView().setSystemUiVisibility(getActivity()

Android: Spinner dropdown in full screen

不羁岁月 提交于 2021-02-10 05:31:07
问题 I'm trying to open drop down spinner in full screen (immersive mode), but the issue is that when the drop down opens up it brings out translucent navigation bar at the bottom. The navigation bars hides when an option is selected, but remains visible as long as dropdown is visible. I was able to remove this behavior in dialog fragment since I have show(FragmentManager manager, String tag) method to override and add this getDialog().getWindow().getDecorView().setSystemUiVisibility(getActivity()

How do I maintain the Immersive Mode in Spinner?

若如初见. 提交于 2020-04-05 15:24:48
问题 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:

Android Snackbar Is Hidden Behind System UI

血红的双手。 提交于 2020-01-14 07:41:10
问题 I've got a full screen Activity that does a hide/show of the system UI using the following two functions: // This snippet hides the system bars. public static void hideSystemUI(View view) { // Set the IMMERSIVE flag. // Set the content to appear under the system bars so that the content // doesn't resize when the system bars hide and show. view.setSystemUiVisibility( View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View

How do I enable full screen immersive mode for a Native Activity NDK app?

拥有回忆 提交于 2019-12-22 17:06:07
问题 Reading the documentation at https://developer.android.com/training/system-ui/immersive.html I can't seem to find any information on how to set full screen immersive mode in a Native Activity NDK app (without using JNI) as it seems full screen immersive mode can only be toggled from Java. As it cannot be set from the manifest (Set Android immersive full screen mode in manifest), is there any way to request it via EGL? Seems the only way to enable full screen immersive mode is to call

Maintain Immersive mode when DialogFragment is Shown

依然范特西╮ 提交于 2019-12-18 01:03:42
问题 I have an Android Application that is made using Fragments I am hiding the bars at top and bottom of my screen, using the following code. @Override protected void onResume() { super.onResume(); isInBackground = false; if(null == getFragmentManager().findFragmentById(R.id.content_container)) { getFragmentManager().beginTransaction().add(R.id.content_container,new PresenterFragment(), PresenterFragment.FRAG_TAG).commit(); } if(Build.VERSION.SDK_INT >=19) { View decorView = getWindow()