Questions tagged [android-immersive]

For the android sticky `SYSTEM_UI_FLAG_IMMERSIVE_STICKY` and non-sticky `SYSTEM_UI_FLAG_IMMERSIVE` immersive mode. A mode that allows the developer to manage a full screen state of the app, while allowing the user to swipe and view system and nav bars.

To implement immersion mode with the SYSTEM_UI_FLAG_HIDE_NAVIGATION or `SYSTEM_UI_FLAG_FULLSCREEN must be used.

Non-sticky mode is recommended for apps where users need regular access to app system and nav bars.

With non sticky immersion, when the system and/or nav bars are swiped and made visible, the flags for SYSTEM_UI_FLAG_HIDE_NAVIGATION and SYSTEM_UI_FLAG_FULLSCREEN are cleared. To re-implement the immersion mode there needs to be an OnSystemUiVisibilityChangeListener

Sticky immersion is suitable apps where the user does not need access to system or nav bars for a sustained duration, and they may in fact be an impediment to the app, for example game apps.

In this case the flags are not cleared and the view from full screen is only transient, as immersion is reinstated. There is no need for a OnSystemUiVisibilityChangeListener, as this is not regarded as a change in the view state.

Information is taken from https://developer.android.com/training/system-ui/immersive.html

105 questions
1
vote
0 answers

Touch Input Problems on Immersive Mode on Android

I have a sample game and enabled immersive mode but the right Buttons on the end doesn't work well. When I enable immersive mode the Touch Input works as it would be a screen with the software buttons though they don't be visible at all. Every…
0
votes
0 answers

How to create immersive fullscreen application in React Native (Expo)?

I want to create Immersive Fullscreen application with React Native (Expo). After many hour's of research online, I only got solutions which are applicable for bare react native project only which include editing MainActivity.java file. From the…
0
votes
0 answers

How to adjust softkeyboard when navigation input is hiding

The problem When I'm in fullscreen / immersive mode and when the softkeyboard is shown I have some empty space which could be used to display more information to the end user, the empty space took the place of the navigation buttons. Without the…
0
votes
0 answers

LibGDX: black bar on top in immersive mode

I need to use immersive mode in my project, so I put this in my AdroidLauncher.java: config.useImmersiveMode = true; But I still have a black bar on top of the screen (as on screenshots below). How can I make the app draw there too? screenshot1,…
Viktor
  • 1
0
votes
0 answers

Android 9 Full screen mode - no exit

I am working on a business application. What I need to do is to set the app in full screen mode (like kiosk mode). The user must not be able to exit this full screen, or use a pin to exit it. I am able to set full screen the activity…
0
votes
1 answer

DialogFragment not hiding navigation controls when in full screen

I'm trying to have a full screen DialogFragment with the ability to show / hide status and navigation bars when tapping the screen. Here is the DialogFragment class FullScreenFragment : DialogFragment() { override fun…
Renjith
  • 3,457
  • 5
  • 46
  • 67
0
votes
1 answer

How to read current immersive mode status via shell/ADB?

Is there an Android shell command that can get the current status of Immersive Mode (i.e. immersive.full, immersive.status, immersive.navigation, or immersive.off)? Immersive mode can be set via the shell command settings put global policy_control…
0
votes
1 answer

Hide tools and title bar in transition between shared activity elements

Customer request: I want to create smooth transition between all activity by moving 2 png elements of my background (customer request). In detail: I have a right element that should move to the left for 20sp, and a miror element on the left that…
0
votes
2 answers

Immersive mode with popup menu Android API's bug?

Immersive(-sticky) mode cannot hide navigation bar completely. When I tap and show popup menu, the navigation bar (with transparent background) is raised like a zombie. This phenomena is same both on API-29 or earlier and on API-30. Is this API's…
hata
  • 11,633
  • 6
  • 46
  • 69
0
votes
1 answer

How to hide navigation bar again after user scrolled it manually up?

In a certain activity in my app I am hiding the navigation bar since that activity is full screen. To hide the navigation bar I am using the following code: private void hideSystemUI() { // Enables regular immersive mode. // For…
Kaiser
  • 606
  • 8
  • 22
0
votes
0 answers

Android get immersive screen in one fragment

I am trying to appny immersive mode in one of my fragment, which in managed by a viewPager. My fragment looks like: public class MapFragment extends Fragment { private MapView mMapView; private GoogleMap googleMap; private UiSettings…
BaRud
  • 3,055
  • 7
  • 41
  • 89
0
votes
1 answer

Why navigation bar shows up after minimizing app and going back to it?

I use this code to hide navigation bar: this.window.decorView.systemUiVisibility = ( View.SYSTEM_UI_FLAG_HIDE_NAVIGATION or View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY) But navigation bar shows up after minimizing app and…
0
votes
1 answer

Completely remove actionbar navigation bar etc in Android app

I need to completely remove the actionbarr and navigationbar from my app. So I stay in fullscreen without the possibility to swipe so I get the navigationbar back. I have now this code in my onreate method which makes it go away but as soon as you…
acroscene
  • 845
  • 4
  • 16
  • 45
0
votes
1 answer

Android - Completely hiding the bar with clock, battery

It is possible to hide the bar with the clock completely ? I mean complete full screen. I tried to use the IMMERSIVE_STICKY flag with the onWindowFocusChanged() method but the bar pulls down when I touch the edge of the screen. Best regard
aminakoy
  • 413
  • 1
  • 5
  • 13
0
votes
1 answer

Swipe to exit immersive mode is picked up by canvas touch events

I have a SurfaceView that uses a canvas to render based on touch events. The activity also uses immersive mode to make it full screen. The problem is that when the user swipes from the top of the screen to exit immersive mode, the swipe is picked up…
behelit
  • 1,765
  • 2
  • 20
  • 34