109 questions
2
votes
0
answers
58
views
How to prevent Android from showing the StatusBar when pressing the Recent Apps button?
When my Activity runs in landscape orientation in Immersive mode, no status bar is visible. (This is the expected behavior).
But when the Recent Apps button is pressed, the status bar on the top of ...
1
vote
0
answers
113
views
How to make whole immersive view visible all the time, when having multiple immersive views on Android TV using Jetpack Compose?
I work on Android TV app using Jetpack Compose. I follow the Guide and I want to make a page with multiple immersive views. I also want to be able to change focus from one to other immersive view and ...
2
votes
1
answer
5k
views
How to enable fullscreen in Jetpack Compose apps
I'm learning Jetpack Compose with Kotlin, and trying to make an app with the option to enable fullscreen mode in Android, only showing the status bar after swiping it down.
I've searched for examples ...
0
votes
1
answer
377
views
NavigationBar not hide in Immersive Mode when show a DialogFragment with Navigation Component-Android Kotlin
I'm a newbie and created a game on native Android with Kotlin (a big mistake).
https://play.google.com/store/apps/details?id=nochi.words
Since I believed it, I have had nothing but problems. And the ...
1
vote
0
answers
216
views
Flutter hide status bar add space with black background
When I click on an item in Flutter I want the status bar to be hidden so that the item I've clicked on is displayed full-screen without any other visual elements. However, when I try to do this, the ...
0
votes
3
answers
516
views
Dark status bar on android 30 and above won't disappear
I have an activity that's supposed to host a web view in fullscreen with the status and navigation bars fully immersive as I don't want to set a color for the status bar. I tried multiple snippets ...
1
vote
1
answer
109
views
flutter: android navbar stays after keyboard use, even though in SystemUiMode.immersive
i have a flutter app using SystemUiMode.immersive,
but when i use my keyboard and discards it, the navbar (and status bar) stays on the app.
I have code that removes them if you touch the screen, but ...
0
votes
1
answer
3k
views
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 ...
1
vote
0
answers
314
views
Flutter: I enabled the immersive mode and the AppBar stays big. When I make it smaller the title becomes cropped and does not go up with the AppBar
The image above shows how I enabled the immersive mode.
This is how the AppBar looks without any modification.
And this is how it looks like, when I set the toolbarHeight to 10.
Here is the code ...
1
vote
0
answers
111
views
How to show ActionBar when exit full screen by swipe down?
mContext.getWindow().getDecorView().setSystemUiVisibility(
View.SYSTEM_UI_FLAG_LAYOUT_STABLE
| View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
| View....
2
votes
1
answer
157
views
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 ...
1
vote
0
answers
287
views
Trying to set fullscreen, Android dialog.getWindow().setLayoutParams() doesn't work with view.setPadding()
I'm trying to have an immersive view implemented for a dialogfragment, and not having an expected behavior happening.
Here's part of my code in onViewCreated(view, Bundle savedInstanceState)
getDialog(...
3
votes
0
answers
1k
views
How to best change systemBarsBehavior with Jetpack Compose?
I'm using Compose and I want to have a fullscreen composable while also modifying the swipe behavior of the system bars.
I'm using the Google Accompanist SystemUiController to hide and show the system ...
3
votes
2
answers
3k
views
How to hide the status bar and draw on it
I know it sounds duplicate but it is not.
I have read a whole article about implementing what I want at android studio official site but no help.
My goal is to draw behind the system bars like this ...
2
votes
1
answer
614
views
Android Spinner: How to keep status bar hidden in full screen?
I use this code to to hide the navigation bar:
View root = findViewById(android.R.id.content);
root.setSystemUiVisibility(View.SYSTEM_UI_FLAG_FULLSCREEN);
getWindow().addFlags(WindowManager....
0
votes
1
answer
2k
views
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(...
1
vote
1
answer
5k
views
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 ...
5
votes
2
answers
3k
views
Flutter sticky immersive does not handle status bar properly
This happens for me on Android 12 with flutter 2.5.3
When using
SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersiveSticky);
The top status bar is hidden but the space that it was in is ...
1
vote
0
answers
73
views
Android: How to get visibility status of immersive navigation bar
I have an exotic task and for it I need to know when the immersive bottom navbar is displayed and when it is hidden. Is there any callback for this in the Android SDK?
0
votes
1
answer
45
views
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 ...
0
votes
3
answers
796
views
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 ...
3
votes
1
answer
1k
views
Keep immersive mode all over the app on Android, Xamarin.forms
I want to keep immersive mode all over the app on Android using Xamarin.forms. I have read few blogs and posts. This one works but only until I press an input text box or I scroll over the screen. I ...
1
vote
2
answers
4k
views
Jetpack Compose beta cannot go edge-to-edge due to overriding fitsSystemWindows
I have upgraded Compose for my app from 1.0.0-alpha10 to current latest of 1.0.0-beta03
I want to layout my activity contents edge to edge, underneath system bars.
Among other things I have used the ...
1
vote
0
answers
348
views
Run the same ADB Shell script on multiple emulators running simultaneously
While running automated UI tests with multiple workers I would like to execute the following script:
beforeAll(async () => {
if (device.getPlatform() === 'android') {
console.log('*** ...
1
vote
1
answer
323
views
How to enable immersive mode on landscape orientation
I'm showing Google Map on my application. I want it to look immersive so I added this line.
WindowCompat.setDecorFitsSystemWindows(window, true)
There is nothing wrong on portrait mode with ...
6
votes
0
answers
3k
views
Android full screen sticky immersive mode - how to change the navigation bar background or icon colors?
I followed the Android dev tutorial and got full screen sticky immersive mode working. This makes the status bar and navigation bar hidden until the user swipes up from the bottom or down from the top,...
0
votes
1
answer
175
views
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() {
/...
3
votes
0
answers
568
views
Full Screen Immersive Mode without layout bounce
How can one toggle between immersive to non-immersive mode without layout being re-calculated and thus experience a bounce effect?
Here's the relevant code that I'm using to toggle between the states:
...
0
votes
0
answers
106
views
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 ...
0
votes
1
answer
81
views
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 ...
0
votes
1
answer
64
views
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 ...
1
vote
2
answers
953
views
Immersive mode activity transition
I've successfully set the app in the immersive mode because I want to hide the status bar (on the top screen) and the navigation bar (on the bottom screen).
The problem is that when the activity ...
-1
votes
1
answer
704
views
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 ...
2
votes
1
answer
6k
views
Android/Unity - Fullscreen mode, Android's status bar, and 3D aspect ratios
I have been racking my brain a week now trying things left and right and I cannot seem to find the answer. I might actually have more questions.
We have an application that uses a Unity view in one ...
7
votes
3
answers
2k
views
Android videoview - immersive - overlapping controllers
I have a videoview on my app and Im using gogole as a reference to make the video player full screen:
https://developer.android.com/training/system-ui/immersive#java
I was following the instruccion ...
1
vote
0
answers
563
views
Android: How to access the notch Area for displaying app content?
I have a phone with a notch.
When I want my activity to go full-screen,
the notch area is inaccessible, it becomes black.
Navigation bar goes away normally.
I have seen other apps also cannot ...
2
votes
1
answer
1k
views
How to hide navigation bar when edittext is focused in immersive mode
I am developing a single-use device with Android. HW has a full keyboard but no main keys (Back, Home, Overview).
Some of the app should be working in immersive mode and they contain EditText fields.
...
5
votes
2
answers
3k
views
How to fix : Navigation bar icons still showing, when pop-up menu is opened (Full screen - Immersive sticky)
I'm trying to achieve a full-screen application, where the user doesn't have any access to the status- & navigation-bar.
Preferably I would want them to be removed completely, but from what I've ...
1
vote
0
answers
297
views
React Native how to have a immersive modal
I have an app which is immersive on android but when I open a Modal the android navigation appears.From what I've searched the Dialog for Modal should have some flags to make it immersive.
1
vote
1
answer
337
views
Immersive Mode with toolbar
I am trying to enter in immersive mode using
View decorView = getActivity().getWindow().getDecorView();
decorView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE
| ...
0
votes
1
answer
278
views
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 ...
2
votes
1
answer
785
views
Xamarin.Forms Android immersive mode with soft keyboard or Alert
I am trying to get my Xamarin.Forms application to use Android's immersive mode, since I am using a device with small screen, so soft keys and navigation bar is stealing my precious screen real estate....
1
vote
1
answer
1k
views
Declare fullscreen and immersive app in manifest
I have this styles.xml
<resources>
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
...
<item name="android:windowFullscreen">true</item>
...
0
votes
1
answer
150
views
How to dim system bars on one click on the activity and again show system bars on the second click on the screen?
Please Check the Images
Image 1
Image 2 after one click
I want to hide and show all system bars (status bar, Action Bar and Bottom Navigation Bar) in every clicks on the activity screen.
0
votes
0
answers
429
views
Is it possible to avoid heads-up notification of incoming calls?
This is a very short question:
Suppose I have an immersive-screen Activity in the app, and I wish to give the users a choice of seeing heads-up notifications of incoming calls, because such a thing ...
2
votes
1
answer
240
views
Is it possible to determine if the screen is now immersive or not, even if not in the foreground?
Background
I'm investigating how to replace the UI of the dialer, when the user gets a phone call (incoming/outgoing phone calls).
This seems to be possible in 2 ways:
On old Android versions, it's ...
5
votes
0
answers
729
views
Android - Toggling Immersive Mode turns on Action Bar Overlay Mode
I am trying to implement Immersive (Fullscreen) Mode in my Android Application, and I'm running into a problem that I cannot solve.
I'm following the Immersive Mode guide and sample apps from the ...
0
votes
2
answers
5k
views
React Native immersions mode
I want to add immersive mode (fullscreen, without on screen navigation bar) to my React Native app. In the best situation I would have it only when viewing the app in Landscape mode. That way the ...
6
votes
2
answers
2k
views
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()....
3
votes
2
answers
2k
views
Android P - Immersive mode when simulating a notch leaves empty space
I have an Android app which uses the immersive sticky mode and it works well on previous versions of Android as well as on Android P, but when turning on the option of simulating a display cutout (...