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
8
votes
4 answers

BottomNavigationView's menu not selected after navigating to other fragment, switching to other menu, and switching back to initial menu

I'm building an android application with 3 menus using bottom navigation. I created new project in Android Studio using Bottom Navigation Activity. I renamed the fragment to: InfoFragment.kt DetectFragment.kt AboutFragment.kt Renamed the layout…
8
votes
3 answers

Is there a way to add rounded corners to an android Material View bottom navigation?

I am trying to add rounded corners to my bottom navigation and i have tried changing widths and heights but its not working. I am using Relative layout with width set to 'fill_parent' and height set to 'warp_content' I have two icons login and…
8
votes
1 answer

Change background colour of area behind selected item in Android Bottom Navigation Bar

Is it possible to change the background colour of the particular portion of the bar behind the selected item of the bottom navigation bar or any third party libraries that support this? Also is it possible to add a highlighted bar along the bottom…
7
votes
0 answers

Implementing Material Design onboarding example

I'm looking at Material's onboarding design guideline. I was wondering how I should approach replicating this kind of navigation. It seems to incorporate a special bottom tabbar and viewpager. Without the swipe-through feature of viewpager, and with…
6
votes
2 answers

Switch tab on button click with Bottom Navigation and Navigation component

I have a very simple app that consists of three Fragments and a Bottom Navigation bar, created by using "New Project -> Bottom Navigation Activity" in Android Studio. The first Fragment holds a button, which should take me to the second Fragment,…
6
votes
1 answer

Jetpack Compose + Navigation - Nested navigation with BottomNavBar

I'm trying to implement the following screen flow using Jetpack Compose + Jetpack Navigation: Navigation concept Actually, i am able to code two singles cases: SplashScreen --> HomeScreen (with no BottomNavBar) HomeScreen (with BottomNavBar) -->…
6
votes
1 answer

Hide Bottom Navigation View in fragment

I want to hide bottomNavigationView in some fragments. I have tried the below code, but it has a flicker effect. (bottomNavigationView hide before the nextFragment becomes visible. val navController = this.findNavController(R.id.nav_host_home) …
6
votes
3 answers

Bottom navigation On navigation item select listener not working

I want to build bottom navigation with activity for my app and after completing my bottom nav. layout.
5
votes
2 answers

BottomNavigationItems padding

Is there any way to remove this padding from the BottomNavigationItem? Image If I have very large text, I have to use ResponsiveText to manage this, but that's not what I intended. What I need is that it doesn't have that side padding/margin, both…
R0ck
  • 409
  • 1
  • 15
5
votes
1 answer

using setupWithNavController:2.5.0-alpha01 caused to OnViewCreated called every time

I use the navigation component and bottom navigation bar and for handling the tab bar navigation, call the below code binding.bottomNavigationView.setupWithNavController(navController) Before the last version, I had a big problem saving the states…
5
votes
1 answer

Too slow loading activity Jetpack Compose

My activity loads too slow with Jetpack Compose(about 5 seconds). I have 3 screens with 1 Lazy Vertical Grid and my custom bottom navigation. Does somebody know how to parallel composing this screens or make loading activity faster? My…
5
votes
3 answers

BottomNavigation in Fragment with navigation component

In my application I have a main screen with a BottomNavigation from Material design. From these screens I want to be able to start other Fragments where the BottomNavigation is hidden so that the new fragments fill the whole screen. Going back…
5
votes
1 answer

Bottom Navigation Bar not working inside fragment

I am trying to show a Bottom Navigation Bar with 3 items inside a fragment, and it shows correctly without errors in my code. But the thing is that when I click on one of the options, the code supposed to be run doesn't work, it doesn't even log…
5
votes
1 answer

How to make bottom navigation show menu items with icon and text except center item menu show only icon?

I want to create bottom navigation bar show menu items icon and text except center item. eg. i have attached image
4
votes
0 answers

Android Navigation Component not saving fragment state with BottomNavigationView

I'm using Navigation fragment version 2.5.0. As release of version 2.4.0-alpha01, it's suppose to support back stack support for bottom navigation without writing any additional code. But my fragments are re-created everytime while I navigate with…
1
2
3
17 18