Immersive mode means full screen mode where the navigation bar is also hidden.
The user can bring back the bars by swiping near the edges.
The required steps are:
1. Call setSystemUiVisibility with the immersive flags. This is done in Activity_WindowFocusChanged.
2. Get the full display size and set the activity to that size.
3. Load the layout
Depends on JavaObject and Phone libraries.
Example is attached.
Edit: example of immersive mode that keeps the status bar visible: https://www.b4x.com/android/forum/threads/immersive-mode-hide-only-navigation-bar.98988/#post-623345
The user can bring back the bars by swiping near the edges.
The required steps are:
1. Call setSystemUiVisibility with the immersive flags. This is done in Activity_WindowFocusChanged.
2. Get the full display size and set the activity to that size.
3. Load the layout
Depends on JavaObject and Phone libraries.
Example is attached.
Edit: example of immersive mode that keeps the status bar visible: https://www.b4x.com/android/forum/threads/immersive-mode-hide-only-navigation-bar.98988/#post-623345
Attachments
-
14.3 KB Views: 93
Last edited: