Questions tagged [android-navigation-bar]
141 questions
20
votes
2 answers
Android: How to force navigation bar to be visible on Samsung Galaxy S8
Is is possible to force an app to always show to navigation bar in an Android app? On Samsung Galaxy S8 it is possible for the user to hide the navbar during "runtime" - which cause some unexpected behaviours in the app (if you are interested; I…

Dambakk
- 595
- 4
- 20
16
votes
1 answer
How do you change the nav-bar background (not just color), even when not in foreground?
Background
Somehow the app "Navbar Apps" allows to customize the background of the nav bar, even if it's not in the foreground, and even not just a simple color.
The problem
I thought it's only possible to change the color of it, and only when the…

android developer
- 114,585
- 152
- 739
- 1,270
16
votes
2 answers
Android Draw behind Status bar but not behind the navigation bar
I'm looking into a way where the status bar is completely transparent, not translucent and where the Navigation Bar is left untouched.
Closest I can get is to use the flag
WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS
but this draws behind the…

DR Haus
- 652
- 1
- 7
- 12
15
votes
2 answers
android detect Samsung Galaxy S8 navigation bar hide or show programmatically
On some devices such as Samsung S8, navigation bar can be hide or show, that's a question in some condition.
Samsung S8's navigation bar can be hide or show by click left bottom button
I didn't find straight way to determine even if in the Android…

Smiles
- 481
- 1
- 6
- 15
12
votes
5 answers
Android - hide status and navigation bar completely for an app with nav drawer and app bar
How can I dynamically hide the status and the navigation bar completely?
The app contains a regular navigation drawer with a appbar / toolbar and FAB buttons.
When switching to full screen, the content of the navigation and the status bar is…

tm1701
- 7,307
- 17
- 79
- 168
12
votes
4 answers
Flutter fullscreen app. Getting rid of the blank white space at the bottom of the app on android
I used SystemChrome.setEnabledSystemUIOverlays([]); to make my flutter app full screen.
The status bar is gone for good, but I get this white space at the bottom where the nav bar used to be.

Aasiz
- 647
- 8
- 18
8
votes
3 answers
displaying my toolbar image as background to status bar effecting navigation bar in android
I want my toolbar to take the space of status bar and the image used for it be the background of the status bar and I successfully do that with this code inside my activity
//for using status bar space
if (Build.VERSION.SDK_INT >=…
user12426457
7
votes
2 answers
Maintaining a full screen when an AlertDialog is displayed
Based on the following code snippet, I was wondering how to hide the soft keys (status and navigation bars) and maintain immersive mode throughout the whole app session even when an AlertDialog is displayed:
public class MainActivity extends…

DaveNOTDavid
- 1,753
- 5
- 19
- 37
6
votes
1 answer
Problem with Android Navigation: Multiple back stacks
My problem is when I try to change the fragment with the bottom navigation it works except in one case. I have 5 fragments, when I enter in the 3rd and after go to the 5th, the icon of the 5th don´t change it color. After that when I do another…

Gray
- 81
- 4
6
votes
6 answers
How to show Snackbar above Bottombar?
I'm using roughike's BottomBar 2.0: https://github.com/roughike/BottomBar/
When I display a SnackBar, it shows up on the BottomBar itself.
I want it to be drawn above the BottomBar.
activity_main.xml:

Gokul NC
- 1,111
- 4
- 17
- 39
5
votes
3 answers
Problem with Translucent Navigation bar in Android
I'm using Translucent Navigation bar by adding below attribute to make my app mobile nav menu looks like some Google apps where mobile nav bar is a bit transparent and content will visible through it.
-

Real Tech Hacks
- 367
- 3
- 11
5
votes
5 answers
Changing bottom navigation bar icon colour?
This is what my bottom navigation bar looks like at the moment:
Looks great right? Except that, right now you can see each icon clearly (or mostly clearly), however when you view it on my device you can barely make out the icons at all.
I have the…

JamieRhys
- 206
- 6
- 24
5
votes
1 answer
Navigation bar is not fully transparent in Android 11 (API 30)
As getWindow().setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS, WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS); is not working in Android API 30. I tried another code from this tutorial:
if (Build.VERSION.SDK_INT >=…

copycat13
- 179
- 1
- 7
5
votes
2 answers
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 read this is not possible unless you root the…

Tobias Heuts
- 123
- 1
- 7
5
votes
3 answers
Hiding the status and navigation bars immediately in app launch
I was wondering if there is a way to hide an Android device's soft keys (status and navigation bars) right when an app launches? Take, for instance, a game that initially displays a black screen while hiding the soft keys in runtime prior to the…

DaveNOTDavid
- 1,753
- 5
- 19
- 37