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
41
votes
14 answers

How to remove icon animation for bottom navigation view in android

I have implemented Bottom Navigation View from Design Support Library 25 in my project. I have 5 icons in the view. whenever an icon is selected it's having some animation. But when 3 or fewer icons is not showing any animations. I want to remove…
Nabeel K
  • 5,938
  • 11
  • 38
  • 68
33
votes
1 answer

Remove Animation/Shifting mode from BottomNavigationView android

i am building an application in which i have a BottomNavigationView. Everything works fine until i get to the Activity. The Navigation is this: The problem is that it has this default animation so it pushes the active element everytime higher than…
user7157256
26
votes
11 answers

How to implement bottom navigation tab as per the google new guideline

How to implement bottom navigation tab as per the google new guideline (Pure android). Is there any example.? Ref: https://www.google.com/design/spec/components/bottom-navigation.html
24
votes
4 answers

Android Bottom Navigation Bar with drop shadow

I'm implementing Bottom Navigation Bar in Android app using Google's support design library v25.1.0. Is there any way to add drop shadow effect, same as current Android native Google Photos app?
20
votes
2 answers

Android Architecture navigation Component with Bottom Navigation?

Now I am wondering which is the most proper way of implementation when want to combine BottomNavigation with the new Android Architecture Navigation Component? For now found two approaches: Single Navigation Graph which maintains all…
20
votes
2 answers

How to change activity on bottom navigation button click?

I want to use bottom navigation bar in my existing android app but the problem is all screen are activity ,is it possible to load activity without hiding the bottom navigation bar. example: activity_main.xml
17
votes
4 answers

How to highlight the item when pressed using BottomNavigationView between activities?

I have added Bottom Navigation View for my app but I need the Bottom Navigation View between activities instead of fragment so I have added this code to Java for all my 3 activities. When I select Second or Third in my phone all things are correct…
16
votes
2 answers

Fragment savedInstanceState is always null when using Navigation Component

Currently, I am playing around Android Navigation Component with Bottom Navigation Bar. While playing I realized two facts: Fragments are always recreated (onCreate, onViewCreated, onViewDestroyed are called as soon as the user navigates to another…
12
votes
2 answers

How to navigate to a non bottom bar screen with jetpack compose?

So i have an app in compose that has startDestination set as a screen with scaffold with bottom nav bar having 3 items and top app bar, i am able to navigate through the 3 bottom navigation tabs. But suppose i want to click on a card in one of the…
12
votes
0 answers

updateAcquireFence: Did not find frame

I am getting this error while switching to the last fragment of the bottom navigation and because of this the last fragment loads a little bit slow E/FrameEvents: updateAcquireFence: Did not find frame. 2022-01-03 12:35:41.373…
12
votes
8 answers

How to change the size and shape of a particular bottom bar navigation item

I am trying to implement this bottom bar which contains an item with a bigger size and a different shape than the other ones. Is there a non-hacky way to achieve this using the native Bottom navigation component ? I guess not because it does not…
Louis
  • 1,913
  • 2
  • 28
  • 41
12
votes
4 answers

Is there a way to have different icon/color for selected state of Android's BottomNavigationView?

The following is the XML for my current BottomNavigationView. Currently, all three of the icon drawables are unfilled icons with the same color. I would like be able to present a filled in version of the icon when that state is selected as well as…
Jason Fel
  • 921
  • 4
  • 10
  • 29
11
votes
2 answers

Multiple Tab fragments inside bottom navigation fragment

In bottom navigation with three tabs (Home, Dashboard, Notifications). Each bottom navigation tab is a fragment. The first tab ie. Home fragment contains another top navigation tabs having four tabs (Tab 1, Tab 2, Tab 3, Tab 4). The problem When …
Puni
  • 1,214
  • 2
  • 18
  • 34
9
votes
6 answers

Android clear backstack after reselecting Bottom Navigation tab

Using the newest Navigation Component with the BottomNavigationView, the NavController now saves and restores the states of tabs by default: As part of this change, the NavigationUI methods of onNavDestinationSelected(),…
9
votes
5 answers

How can i dynamically change bottom navigation items text?

Im trying to achieve the above design. I'm able to change the icons, but cannot change the bottom text. Im using material bottom navigation bar I achieved the icon change by implementing separate selector drawables for each icon. Is there any way…
1
2 3
17 18