Questions tagged [android-bottomnavigationview]
130 questions
2
votes
2 answers
Can't drag BottomSheet when clickable="true"? If not set clickable then click goes through it and fire on Recycleview item under it
Here is my Persistent BottomSheet

gpl
- 1,380
- 2
- 8
- 24
2
votes
1 answer
UnsupportedOperationException while using BadgeDrawable with BottomNavigationView
I'm using BadgeDrawablewith BottomNavigationView . But when I put a badge in an Icon of the bottomNavigationView I get this Exception
java.lang.UnsupportedOperationException: Failed to resolve attribute at index 3: TypedValue{t=0x2/d=0x7f0400db…

Ahmed Elsayed
- 231
- 3
- 23
2
votes
1 answer
How to implement OnLongClickListener to BottomNavigation menu item long press?
I have issues with creating long press listener for my menu item.
I have tried using almost every solution on this side, but it didn't work.
OnNavigationItemSelected works perfectly, but OnLongClickListener never fires whatever I do.
When I declare…

dmahnet
- 53
- 1
- 5
2
votes
1 answer
Android set color of icon and text in bottomNavigationBar by program fails
I create a xml file to control my bottomNavigation bar, like this:
-

playground
- 115
- 1
- 13
2
votes
1 answer
Android: Problem in Transparent Bottom Navigation inside the Bottom App Bar
I am trying to achieve this kind of Bottom App Bar.
I manage to do this.
Then I put app:backgroundTint="@android:color/transparent"
in Bottom navigation but it turns out as shown below. It's not that properly set as transparent.
Layout…

JeffyO
- 81
- 10
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?

Moataz
- 495
- 3
- 20
2
votes
1 answer
Bottom Sheet in fragment behind BottomNavigationView
In my fragment, on a button click I need to show a bottom sheet dialog but it must appear from behind the bottom navigation bar. A similar problem has already been addressed here but
due to some strains, I need to create the bottom sheet by…

bhanu kaushik
- 391
- 1
- 7
- 30
2
votes
1 answer
Open alert dialog in Bottom Navigation View while navigation to next fragment
I am having an BottomNavigationView in my activity and i have five fragments and i have used Navigation Jetpack component.
Each and every time i move to next fragment by clicking the BottomNavigationView item, i have to ask for a confirmation dialog…

Android Rajaganapathi
- 175
- 1
- 11
2
votes
5 answers
BottomNavigationView - How to disable selected icon highlight
I have a bottomnavigation view that sets an icon depending on the state if it's checked or not.
2
votes
1 answer
Androidx BottomNavigationView does not play transition animations accordingly
I set up a bottom navigation view with the navigation component. The user navigation between fragments works fine.
The issue is that navigation through the bottom navigation view does not play the animations configured at the navigation component,…

Plinio.Santos
- 1,709
- 24
- 31
2
votes
3 answers
Strange empty bar above fragment on BottomNavigationView
This is how it is supposed to look: https://i.stack.imgur.com/4bLy5.png
This is how it looks: https://i.stack.imgur.com/oSUjF.png
Strange white space appears on top of my fragment and moves everything down in an offset of it's height. Tried all the…

V. Popov
- 41
- 6
2
votes
1 answer
How can I set the map view to full screen with bottom navigation bar
I want to set the mapview to full screen, I had done every necessary things like setting both the framelayout and the mapview to matchparent but still when i run the app on my phone only a portion(maybe 60dp is the height but the width is…

Mr. Baks
- 297
- 2
- 6
- 20
1
vote
1 answer
Cannot resolve method 'setupWithNavController(NavController)'
I implement a single-activity architecture with flow fragments in Java. My MainFlowFragment is where I setup bottom navigation view with 4 fragments inside this flow.
MainFlowFragment.java:
package…

Tatiana Kogai
- 55
- 5
1
vote
1 answer
Android navigation graph with navviewholder fragment navigation issue when navigating using list click item
I have a very simple use case that I am surprised isn't working.
I have a bottom view navigation controller with 2 fragments, a list fragment and a detailed fragment. When I navigate to the detail fragment page I have no problems navigating…

user1743524
- 655
- 1
- 7
- 14
1
vote
1 answer
pressing back button is not changing the color of the icon of the bottom navigation bar
I am implementing bottom navigation bar with activities. I have created a selector which changes the color of the icon when clicked. But when I press the back button, it goes to the previous activity but the color of the icon does not change.
this…

Divyansh Singh
- 69
- 6