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
0
votes
1 answer

How to create Custom BottomNavigationBar similar to NavigationRail but horizontally in Jetpack Compose

I am trying to create a custom bottom navigation bar which looks similar to a Windows 7 bottom app bar or task bar. Something similar to navigation-rail but its horizontal. All the bottom navigation items should lay from start and spacing between…
0
votes
1 answer

Multiple versions of BottomNavigationView

I would like to have two versions of the BottomNavigationView, each with its own set of tabs. Some are shared, some not. For example, Version 1 has Fragment A, B, C, D on the bottom, version two has Fragment B, C, E, F on the bottom. I would like to…
0
votes
0 answers

Switching between BottomNavigationView tabs, onDestroy of the fragment is called but still view restored on switching back. How?

I was exploring one of the navigation samples provided by Android here. Here each of bottom nav items has a nested graph of their own. Currently I'm on the Second tab (Leaderboard) and on changing the tab, onDestroy() of the fragment gets called…
0
votes
2 answers

when I re-select menu items from bottom navigation view the fragments are recreating

I am using bottom navigation view with navigation components, when previous selected menu item is reselected fragment is reopening from oncreate When I open my activity document fragment is loading and when I select even fragment and again reselect…
0
votes
3 answers

BottomNavigationItem doesn't adopt the material theme jetpack compose

I am migrating my app to jetpack compose and the theming and styling is giving me some headache. I have implemented Bottom Navigation as explained in this tutorial. I have also set the background color as such: backgroundColor =…
0
votes
0 answers

icon's color of bottom navigation is not changing

I am using bottom navigation with activities in my app. I have used selector to change the color of the icon when pressed. It is changing color when the icon is pressed and is going to the next activity but when I am pressing the back button it is…
0
votes
1 answer

How to handle bottom navigation button click 2-nd time at inner screen using compose navigation

I have an app, which represent a screen with bottom bar with 4 tabs. I use compose navigation with bottom bar. When user clicks on the bar the screen appears. How can I handle the situation when user clicks on the bar button for the 2-nd time, I…
0
votes
1 answer

App Crashes on building bottom Navigation

Created an app using Kotlin for the bottom navigation component but after launching it crashes each time. MainActivity class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { …
0
votes
0 answers

How stop BottomSheet from Overlaying BottomNavBar (with Jetpack Compose)

This is my first time using the BottomSheet. I follow a tutorial and implemented the bottomsheet in a code with bottomnavbar. This was the result. {The bottomsheet overlaps the bottomnavbar, when it is collapsed} As you can see the bottomsheet…
0
votes
0 answers

how to make icons of bottom navigation bar transparent?

I am working on an android app where I have to take icons of bottom navigation bar transparent without any tint layer. How can I do that? I have tried @android:itemIconTint="@color/tranparent" But it is not working Here is my code…
0
votes
1 answer

Android : Switching Bottom bar navigation

I am currently building an app with admin and user. I've used the template bottom navigation menu method. I've created two versions of the menu for admin and user. How will I be able to switch these two out at any point?
0
votes
3 answers

The Home fragment rises above the rest

when I switch between the fragment I created, the home fragment is not deleted, it writes on the others. please i have an issue. I am using bottom navigation and nav controller. once I switch fragments, the home fragment keeps showing under the…
0
votes
2 answers

Android BottomNavigation showes "Up Button" when navigating between tabs

I've sat up a bottom navigation bar in my app. When I enable action bar with navController, the up button shows when navigating between tabs. [Fig.1: up button is gone when I'm in home destination] [Fig.2: up button show up when navigation between…
0
votes
1 answer

How to set in Android to be navigated to the same fragment every time from the bottom navigation bar?

I have 4 fragments: A, B, C and X. A, B and C are found on the bottom navigation bar, so every time I click on item A, I get the A fragment on the screen, click on B, I get B. When I click on C, I get the C fragment, which has a button, that…
0
votes
1 answer

Jetpack Compose Bottom Bar icons do not fit into open element area

I create my BottomBar on Jetpack Compose. The main requirements are the absence of a background, large icons with captions and indents from the edges of the screen. For some reason, the icons are not placed in the BottomBar area. Is there a way to…