Questions tagged [android-bottomnav]

Bottom navigation bars display three to five destinations at the bottom of a screen.

Bottom navigation bars display three to five destinations at the bottom of a screen. Each destination is represented by an icon and an optional text label. When a bottom navigation icon is tapped, the user is taken to the top-level navigation destination associated with that icon.

270 questions
3
votes
1 answer

How to implement tabview in one of the fragment of bottombar?

I want this type of design :: Here Is My design My mainactivity.xml only contain a frameLayout which is Replaced by Selected Fragment from bottombar menu item. It's code is here: b = BottomBar.attach(this,savedInstanceState); …
2
votes
0 answers

How add FAB to bottom navigation bar with Compose in Material3?

Every tutorial or example of what I want to achieve uses isFloatingActionButtonDocked = true in a Scaffold. This is not present in Material3 Scaffold and I presume its part of what achieves the the bottom result I cannot find any information on how…
2
votes
1 answer

Do action when holding a button from bottom navigation bar

I wanted to enter a settings page when I hold down the home button on the bottom navigation bar. I looked for how to get the id of a button in the bottom navigation but couldn't find anything. Do you know if I can get a button from this bar? Thanks…
2
votes
2 answers

How to remove the space under the bottom pill gesture bar Android?

How do I get rid of this tiny black space under the bottom "gesture bar"? Most apps extend all the way to the bottom, but I still see this tiny black bar on the bottom. Main Activity XML
yambo
  • 1,388
  • 1
  • 15
  • 34
2
votes
3 answers

How can I hide a bottom tab in the bottom navigation in android. (Landscape mode failed to hide the tab)

I need to hide center bottom tab in the bottom navigation while launching the app. Here I have tried to remove the tab. It worked in potrait mode, But in the landscape mode, to hide the tab bar in…
sejn
  • 2,040
  • 6
  • 28
  • 82
2
votes
0 answers

Does Android Jetpack Navigation Kotlin DSL support bottom navigation with multiple stack?

I am using latest Jetpack Navigation with native support of multiple stack for bottom navigation: https://medium.com/androiddevelopers/navigation-multiple-back-stacks-6c67ba41952f and it works fine. The only limitation for me that I have to define…
2
votes
0 answers

Move snackbar above the bottom nav bar jetpack compose

I am creating custom Snackbar using Jetpack Compose. But I have also implemented BottomNavBar using Scaffold. Everything works fine but only one problem is snackbar goes under the BottomNavBar. So how to move above to the snackbar over…
2
votes
0 answers

Jetpack navigation compose, bottom nav, make back button switch tabs?

I'm trying to use bottom navigation (ie, tabs) with Android Jetpack Compose and the Navigation Compose library. I have it set up with multiple back stacks, so that the state of each tab is preserved when you switch between them. However, if I change…
2
votes
1 answer

How to keep a specific screen when using Navigatioin Component?

I have a BottomNavigationView and I am using a NavController to switch menus and move the screen. I would like to know how to keep a specific screen even when moving the menu freely. Let me explain in more detail. There are bottom menus A, B, C. And…
2
votes
2 answers

Bottom Navigation View doesn't work after going to a fragment not inside the bottom navigation view and coming back

So my app's architecture is kind of unique, I am using Navigation Components btw. It has a main activity that has a NavHostFragment associated with. The NavHostFragment has navigation graph associated with it which has two fragments, Main Fragment…
2
votes
1 answer

Change the background color below the floating action button that is a part of a BottomAppBar

I'd like to have a semi-transparent floating-action-button that is a part of a bottom-app-bar. I can tune all colors but the one underneath the FAB itself. I guess it belongs to the bottom-app-bar but I cannot figure out how to change it. Do you…
t3chb0t
  • 16,340
  • 13
  • 78
  • 118
2
votes
1 answer

Android: Recyclerview in Bottom Navigation Bar Fragment populated with SQLite will not update

I have a BottomNavigationBar with 3 fragments. In the first fragment, I try to put SQLite data into a recyclerview. It works fine except for the fact that I need to switch between the Navigation Bar items in order to see the refreshed recyclerview.…
2
votes
2 answers

Bottom Navigation Icons dont show original color

I downloaded some .png files for icons. I designed a bottom navigation of material design but the colors and text is not visible. Here's a picture of icons and bottom nav.
user13121564
2
votes
2 answers

How to add second line to text on bottom bar for Android?

I'm trying to have my text go down to a second line so it's not cut off but not sure whether this is possible using the Google MaterialBottomBar? Something like the image below please. But this is what I…
Francislainy Campos
  • 3,462
  • 4
  • 33
  • 81
2
votes
2 answers

Fill the icons in bottomNavigation

I use bottomNavigation. I wanna fill the icon with the color "not the outside of the icon" when selected. How can I do that?