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
0 answers

How to blend the Flutter bottom navigation bar with the system navigation space at the bottom

I'm building a flutter app and I used the BottomNavigationBar widget everything seems to work fine but the color of the Navigation bar is not blending with the device navigation space. (The place where the home button recides). Below is something…
3
votes
1 answer

Change size of only one icon of bottom navigation view (Android)

I want to change the size of only ONE icon (3rd icon) out of the 5 icons I have used in my bottom navigation view. I want The Center icon big like: This is what I have tried: private fun setReportPainIconSize(){ val bottomNavigationView = …
3
votes
0 answers

Jetpack Navigation With Bottom Navigation Bar Nested Graph Transitions Animation issues

In my current project, I have set up a bottom navigation bar with the jetpack navigation library, and each bottom destination holds it's own nested graph. Each nested graph looks like this for example, Music Home Page -> Music PlayList -> Music…
3
votes
5 answers

How to Hide Bottom Bar Nav.. When following single Activity design?

I am trying to show thebottom bar navigation in only a few fragments (i.e hide it for most of my fragments).. I read the official document about this, but it unclear to me, like where do I put the code, and I read comments on this here on…
3
votes
1 answer

Jetpack Compose BottomNavBar label overlapping Icon

I was trying to implement jetpack compose bottomnavbar. But I encountered this problem. Whenever label don't get enough space it's overlapping the icon. Am I missing something? Is there any solution like truncating or shrinking text…
3
votes
5 answers

bottom navigation view fragment re-created when it is already created

In my application i am using Jetpack Navigation with BottomNavigationView. I have like 4 fragments:Home,Search,Notifications,Profile and when i am in Home fragment, i click again home item in bottom navigation view, it re-creates the fragment. I…
3
votes
1 answer

Programmatically show BottomNavigationView in CoordinatorLayout when it's hidden in another fragment

Im using bottom navigation view with hide_bottom_view_on_scroll_behavior. When user selects item from first fragment list app goes to detail fragment.I want to show bottom navigation view if its hidden in that (detail) fragment. Main activity…
3
votes
2 answers

BottomNavigationView set selected item background color programmatically

I know we can set the bottom navigation selection color from XML in this way But I want to know how we can change it programmatically from my Activity? This is what I tried in Activity's OnNavigationItemSelectedListener. …
Sneha Mudhigonda
  • 146
  • 2
  • 10
3
votes
0 answers

Androidx BottomNavigationView behaving strangely in different devices

After upgrading to implementation 'com.google.android.material:material:1.1.0' The Bottom Navigation View started behaving strangely on my phone. The height was set to 56dp and the icons were cropped and then when I set the height to…
3
votes
2 answers

different background color to bottom navigation tab selected item by using material design

I want to implement background color of selected item like below in the image but unfortunately everyone are trying to answer this using some third party library. I want to achieve this with material design component itself this is my code…
shiv
  • 165
  • 11
3
votes
2 answers

Selected Item in BottomNavigationView Has Same Color as Background

I am implementing a bottom navigation menu. but the first item in the menu is not selected. I notice that when I change the color of bar background then it shows, and the reason is that the first item "enabled" color is the same as the background…
3
votes
2 answers

How to force BottomNavigationView label to multiline

I have a BottomNavigationView with a long label text and it's not showing the full label. I found that the label on BottomNavigationView has a maxLines="1", but I don't know how to modify it to allow 2 lines label.
3
votes
1 answer

Failed to find style 'bottomNavigationStyle' in current theme error

I keep trying to add a bottom navigation bar to my activity. However, it says that it Failed to find style 'bottomNavigationStyle' in current theme and The following classes could not be instantiated:…
joshua
  • 458
  • 5
  • 18
3
votes
3 answers

android- support library BottomNavigationView not showing titles

I'm using android support design widget BottomNavigationView for making my bottom navigation items. this is the result of the job : it has 2 problems , first it doesn't show the titles under the items, the second problem I want the items to fill…
3
votes
1 answer

Can't make roughike bottom bar navigation title centered

I'm using roughike to implement bottom bar navigation in my android project. I'm not using any icon image as I felt using image & maintain resolution ratio is more complicated than using fontawesome icons. So I've written the code this…