Questions tagged [android-navigation-bar]

141 questions
3
votes
0 answers

NavigationBar color not changing Android 7

I'm trying to change the color of the bottom navigation bar. It supposed to be super easy using xml, I've added this lines in values/styles:
Juvi
  • 1,078
  • 1
  • 19
  • 38
3
votes
3 answers

Hiding the navigation bar immediately on app launch

Based on the following code snippets, I was able to hide the status bar right when the app launches, but not the navigation bar (the bar consisting of the back, home, and task manager buttons) since it hides later after MainActivity's thread…
2
votes
1 answer

ERROR: cannot be cast to androidx.navigation.fragment.NavHostFragment. -- app crashing every time

So I'm trying to build an app with a bottom navigation bar that will switch between fragments. I did the coding according to some documentation. I tried every solution on the internet but none of them seems to work for me. the error: Caused by:…
2
votes
0 answers

Android navigation component with bottom navigation crash if navigate after pop back stack

I have a main nav graph with included subgraphs to provide multiple back stacks with bottom navigation view. It works, graphs ids are consistent with the bottom menu items id. The main problems arise when I try to pop a back stack on the reselect…
2
votes
2 answers

Why does BottomSheetDialog draw under the navigation bar in landscape?

I am showing a simple Android modal bottom sheet menu. In portrait mode, it works fine, but when the device is rotated to landscape the bottom of the sheet draws under the navigation bar and is hidden. This is using a tablet emulator (Pixel C, API…
2
votes
0 answers

Using any 'androidNavigationBar' option in Expo app.json crashes Expo Go in Android

I'm trying to edit the looks of the bottom navigation bar on Android using Expo NavigationBar I've installed it by running expo install expo-navigation-bar For example, in my app.json, changing color: { "androidNavigationBar": { …
2
votes
1 answer

How to detect when the system navigation bar appears on full screen mode?

The following code successfully hides the system's navigation bar from the screen. Users can still swipe up to reveal the navigation bar, which will remain on screen for a few seconds, then disappear again. Is there a callback to detect when the…
Will
  • 1,123
  • 1
  • 9
  • 22
2
votes
1 answer

Change icons in Material You bottom navigation bar in active and inactive states

Google recently released Material You (M3) for Android. According to the design guidelines, as stated here: https://m3.material.io/components/navigation-bar/overview, bottom navigation bars' icons have to be outlined when inactive and filled when…
2
votes
0 answers

How to hide the System Ui in Android API 30

I've recently updated my targetSDK to 30. In this API setSystemUiVisibility is marked as deprecated, despite Android still recommending it (see here). How can I go to sticky immersive Fullscreen in this API? My code before updating: private void…
2
votes
2 answers

Android Material Toolbar Overlapping with Status Bar when trying Edge to Edge design

I was trying to implement edge to edge design to take full advantage of the screen in Android Q but i am having some issues with it. My code is as follows: activity:
2
votes
2 answers

SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR not working on API 28

I have a problem with SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR somehow not working, but SYSTEM_UI_FLAG_LIGHT_STATUS_BAR is working. I'm working with Android API 28 at the moment. So whats happening? On API 23 and below I get translucent Status Bar and…
2
votes
2 answers

How do I set my status bar transparent but keep by navigation bar black?

As my question suggests, I am trying to figure out how to set my status bar color transparent while keeping my navigation bar black/natural color (without affecting the screen height) I referred to this site : Android Completely transparent Status…
user2386226
2
votes
1 answer

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. When the app is in immersive mode (I used Lock…
2
votes
1 answer

How do I hide the navigation bar in the editor for android studio?

How do I make the bottom navigation bar disappear in the visual XML editor in Android Studio? I already have the AppTheme set to NoActionBar. The navigation bar is very annoying because my phone does not have one so when I place something on the…
2
votes
0 answers

Android/Kotlin - LAGGY Checking item in BottomNavigationView from ViewPager

I am fairly new to programming, and this is my first large/real project. --Background-- I have a ViewPager set up within my MainActivity, that slides between 3 different fragments. In Addition, one fragment requires menu items within the toolbar,…
1 2
3
9 10