150 questions
2
votes
2
answers
126
views
Android 35+ Navigation Bar Changes Color During Activity Change
I noticed very weird behaviour regarding colors in my app. During changing Activity from Activity1 to Activity2 navigation bar changes its color (to black one if it matters) during transition. After ...
0
votes
1
answer
222
views
Jetpack Compose: draw behind navigation bar, navigationBarColor deprecated
I want my Android Jetpack Compose app to draw behind the system navigation bar, but not behind the system status bar.
I managed to do this, but for window.navigationBarColor I get the warning:
...
7
votes
0
answers
1k
views
What is the replacement for deprecated APIs related to edge-to-edge in Android 35+?
In my Android app, I am currently using the following deprecated APIs for edge-to-edge and system UI customizations:
android.view.Window.setDecorFitsSystemWindows
android.view.Window.setStatusBarColor
...
3
votes
3
answers
1k
views
BottomNavigationView never fills system navigation buttons when edge to edge
I'm trying to make edge to edge UI with top nav bar, bottom nav bar and drawer.
the BottomNavigationView doesn't want to fill the system navigation buttons. screenshot
i've tried to put the ...
0
votes
1
answer
28
views
What is the best way to force a subfragment to return to a root fragment after switching fragments using a navbar, and usng actions?
I am currently developing an android application (https://github.com/Team4388/ScoutingApp2025/) and I have recently swapped everything over to use sub-fragments and actions instead of enabling and ...
3
votes
1
answer
1k
views
ModalBottomSheet animation going over system NavigationBar
Problem:
When the Compose ModalBottomSheet is being dismissed it animates over the navigationBar, or rather "through" it, the nav buttons stay visible over the sheet, but the navigationBar ...
1
vote
0
answers
110
views
Change bottom system softkey navigation ActionBar for Android phones with hardware keys
I haven't found any resources for a non-system app to write to this menu.
Many flip phones with differing UIs share this exact same bottom navigation bar, but I can't find its API. External apps, ...
2
votes
1
answer
174
views
BottomNavigation not showing chosen colours
I am pretty new to Kotlin. I have a BottomNavigation wrapped in a Scaffold. The tabs background color change works well. But, though the icons are actually white, it appears black on the app, though I ...
0
votes
1
answer
35
views
Flutter apply NavigationBar widget's color to Android's system navbar
A lot of times when I use a NavigationBar paired with a Material3 Theme, the Android's NavigationBar color is usually set to the app's background color, istead of matching the NavBar.
Problem:
Target:...
1
vote
0
answers
73
views
Compose Scaffold does not get the max height of custom bottom bar
I have a custom bottom bar and i want Scaffold to get this bottomBar's max height and give me the padding of it from the bottom so my content is properly placed when there is a scroll for example.
...
3
votes
2
answers
2k
views
How to change height of NavigationBar in Jetpack Compose with Material 3?
I would like to change default height of NavigationBar of Material 3 using Jetpack Compose.
I have tried changing NavigationBar height using Modifier.height but it has a limit and the icon collides ...
1
vote
0
answers
64
views
Android navigation framework - effect of saveState
My app has 2 screens:
ScreenA -> Has text that says "Screen A" and button. When button is pressed it leads to ScreenB
ScreenB -> Has text that says "Screen B"
At the bottom ...
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 ...
0
votes
1
answer
996
views
How do I make the Android navigation bar auto-hide after a period of time?
I use the following call to hide the system navigation bar when my activity starts.
WindowInsetsControllerCompat(window, window.decorView).hide(WindowInsetsCompat.Type.systemBars())
When the user ...
0
votes
1
answer
277
views
How to use "QAndroidApplication::runOnAndroidMainThread" to change color of status- and navigation bar?
I am still very new to Qt and qml and struggle with getting the color of the statusbar and navigationbar changed on deployed andriod apps with qtquick.
I have found that it is possible to change the ...
0
votes
1
answer
119
views
The screens of BottomNavigationBar is not showing
I have a bottomNavigtionBar with jetpack compose but the screens are not showing when I navigate between it, it's showing the bottom bar with a blank white page
I have three screens Home, Profile and ...
6
votes
0
answers
2k
views
How to reduce top and bottom padding of Material3 NavigationBar
I am using material3 NavigationBar for the bottom navigation, inside the bottomBar slot of a Scaffold.
Even in the specs, it look very thick - https://m3.material.io/components/navigation-bar/specs
...
4
votes
2
answers
2k
views
How to remove oval shaped indicator from NavigationBarItem in NavigationBar (Jetpack compose)?
The NaviagtionBar I am using actually has a gradient effect going from transparent to black color with alpha values of black color in between. My container color is transparent, but on active ...
2
votes
1
answer
3k
views
MAUI: how to get the system navigation bar height on Android?
On a MAUI app, we display some information at the bottom of the screen: for example we display the version number of the at the bottom of the menu in the Shell.
On most devices, the screen is well ...
1
vote
0
answers
291
views
Why Android system bottom navigation bar height may be 0?
I'm using Compose and need the bottom nav panel size, to correctly calculate some properties. But the problem is that it doesn't matter what os version or device, I receive 0 for both the top and ...
0
votes
2
answers
2k
views
react native expo androidNavigationBar not working
I am trying to hide the software navigation bar in an Android app.
I am using androidNavigationBar in app.json
"androidNavigationBar": {
"visible": "immersive"
},
and ...
1
vote
1
answer
1k
views
Navigation bar color in Kotlin
I have a problem with the navigation bar color in android 13, when I set it to white the button remain white so they are not visible. Any solution to that in Kotlin? Can the button color in the navbar ...
0
votes
1
answer
67
views
Why is my navigation bar's background misaligned with the actual orientation?
Right now in the Android app I'm working on, I'm trying to figure out why, after rotating the device to landscape, my navbar's background still thinks the app is in portrait mode (and lays itself out ...
0
votes
1
answer
55
views
Android NavBar is Black
I am learning android. I wanted to implement navigation bar. For Dark theme navbar color is fine but for light theme the navigation bar is still black I wanted it to be white. As highlighted below. I ...
1
vote
0
answers
1k
views
How to hide Android System UI correctly
I have searched now for a while, but get no working solution to work in my Android app.
I've got an activity with several fragments. I want to hide the system UI (action and navigation bar) and also ...
2
votes
1
answer
2k
views
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 ...
2
votes
0
answers
720
views
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 ...
2
votes
2
answers
2k
views
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....
0
votes
1
answer
2k
views
Bottom Navigation in compose, how to navigate outside of Scoffold/NavGraph
What I use:
Kotlin, Jetpack Compose
What I want to do:
After clicking "Log In" text I would want to navigate user to the log in form
What I currently have:
MainActivity.kt
class MainActivity ...
1
vote
0
answers
190
views
How to show view of WindowManager over navigation bar and status bar?
I wanted to show a view (like sidebar) above/over status bar and navigation bar
I used this Flag in params
param = WindowManager.LayoutParams(
ViewGroup.LayoutParams.WRAP_CONTENT,
...
2
votes
1
answer
2k
views
How can I make the android navigation bar transparent when React Native Modal is shown?
I use React Native CLI. With Alert, the full screen of the app is covered and the navigation bar becomes transparent. However this does not happen with a Modal, which does not cover the navigation bar....
2
votes
0
answers
828
views
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:
...
6
votes
1
answer
5k
views
Material Design 3 uses colorPrimary for actionBar, navBar and calendar background color. How do I disable this?
After upgrading to Material Design 3, I noticed that the background colors of certain things changed to a faded version of whatever my primary color is set to. For example, if I set my primary color ...
0
votes
2
answers
62
views
Unformatted BottomNavigationBar Flutter
I created a simple bottom navigation bar, (my code below)...
bottomNavigationBar: BottomNavigationBar(
backgroundColor: COLOR_WHITE,
items: const [
BottomNavigationBarItem(
...
3
votes
1
answer
1k
views
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 ...
0
votes
1
answer
3k
views
adb shell cmd overlay resets to it's previous state (doesn't activate) after reboot
I'm trying to switch between gestural and threebutton navigation using
cmd overlay enable com.android.internal.systemui.navbar.gestural
and
cmd overlay enable com.android.internal.systemui.navbar....
3
votes
4
answers
3k
views
Wrong ripple in material3 NavigationBar in Jetpack Compose
When I use Material3 NavigationBar in Jetpack Compose I get wrong rectangular ripple effect like this:
Material3 library version: 1.0.0-alpha06
Code:
NavigationBar(modifier = Modifier....
7
votes
2
answers
2k
views
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 ...
3
votes
2
answers
3k
views
How can I color the cutout/notch area with background color in non-full screen landscape mode in android jetpack compose
In landscape mode in Night mode cutout area is rendered white, how can I set the black(background) color to it? My app is not in fullscreen/immersive mode.
I want to color white color cutout strip in ...
1
vote
0
answers
217
views
Unable to detect SD card (external storage) after disabling systemui
I wanted to disable status and navigation bar on Android 9. so, I used the below commands do disable and enable both the bars.
Disable
pm disable com.android.systemui
Enable
pm enable com.android....
2
votes
1
answer
2k
views
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 ...
1
vote
1
answer
2k
views
Switch Status Bar Text Color / setAppearanceLightStatusBars of WindowController is not working as expected
I am using two different backgrounds for my app depending on which screen is active. In general the status bar is transparent and the background should lay behind it. Depending on the background I ...
1
vote
3
answers
376
views
Why Action bar always stay as gray color in android?
AndroidManifest.xml:
I have video player, everything works, but I do not know how to remove gray navbar, even I declared in manifest
android:theme="@style/Theme.AppCompat.Light.NoActionBar"
...
4
votes
0
answers
1k
views
Translucent navigation bar with BottomSheetDialog
I'm fighting for a proper navigation bar coloring on targetSdk=30 in my BottomSheetDialog when going edge-to-edge. I set the light navigation bar option via code here:
override fun onAttachedToWindow()...
0
votes
1
answer
369
views
On swiping fragments are changing but bottom navigation icons are not changing in android studio
I created a bottom navigation bar with 3 icons and 3 different fragments linked to them.
On clicking an icon,
1.the icon changes
2. icon color changes
3. that related fragment appears on screen
On ...
5
votes
3
answers
2k
views
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.
...
5
votes
5
answers
560
views
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 ...
0
votes
1
answer
400
views
Dynamically change the FAB in MainActivity for Android
I have the following XML layout
<androidx.coordinatorlayout.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas....
1
vote
0
answers
185
views
fragment bottom navigation bar clickable one time selected item
When I click again to any item, same fragment view reloading every time. But I wanna do bottom navigation bar item one time clickable. how can i do this?
This is MainActivity.java codes
navigationMenu=...
0
votes
0
answers
490
views
Error While Implementing Bottom Navigation bar in Android Kotlin
I am fairly new in android development.
I tried implementing navigation bar in my app which switch from fragment A to Fragment B.
And in Fragment A there is a floating action button which points to ...