Questions tagged [android-bottomnavigationview]

130 questions
1
vote
0 answers

Is it possible to have two bottom navigation bars linked to a NavGraph?

I'm developing an application in which an user can identify himself with two different roles (administrator and user) The user can access to six fragments according to their role (three for each role type), right now I have a bottom navigation bar…
1
vote
2 answers

BottomAppBar with BottomNavigationView: Cant change icon and text color

I have a BottomAppBar with nested BottomNaviagtionView that looks like this. I can't seem to override the default purple color for when the selected icon is chosen. Here is my code:
1
vote
2 answers

Bottom navigation icon only changing color when clicked twice?

When I click on an icon it doesn't change color unless I click it again, it goes to the activity but only the first icon remains highlighted. I have to click it again for the icon to change color. What is wrong with my code? class ProfileActivity :…
1
vote
1 answer

View pager2 in Fragment of BottomNavigation

I have 2 Fragment,Frag1 and Frag2 in Bottom navigation and in Frag1 I have implemented retrofit through viewmodel(MVVM) and when I try to send query by buttons in viewpager2 to frag1..getactivity is null..also attach detach do not work. Please…
1
vote
0 answers

How to use beginTransaction.hide().show() instead of beginTransaction().replace() on fragments in android studio?

It has been only a couple days since I started learning android studio and today was the day I stumbled upon fragments. I am using the beginTransaction.replace() method to replace the fragment but this just create a new fragment every time. I have…
1
vote
0 answers

NavController does not change fragment to new destination

Problem: Fragment is not changed to next fragment Condition: Using BottomNavigationView, Navigation component and multi-module app Action: launch app on emulator when launched app, home fragment will be shown when tapped message icon or my page…
1
vote
2 answers

How to correctly display outlined icon in Android Bottom Navigation View

My current Android application employs com.google.android.material.bottomnavigation.BottomNavigationView I have four icons, one of which is the standard android vector image for person outline which looks like above however in the Apps bottom…
Hector
  • 4,016
  • 21
  • 112
  • 211
1
vote
0 answers

NavigationComponent with BottomNavigationView fragment progress

I'm using NavigationComponent with BottomNavigationView. I'm facing with a problem thats when i select first item in BottomNavigationView then go from fragment 1->2->3 after that i change selection to second item in BottomNavigationView. When i…
1
vote
6 answers

Bottom Navigation Not showing original color

I have designed a bottom navigation view for my application. The idea is simple, green colored bottom bar will have white colored icons. I wrote a selector for this
1
vote
2 answers

BottomNavigationView height is not wrapped to the bottom

I have a linear layout with a bottomNavigationView, the thing is that it does not has height and I dont know why
SNM
  • 5,625
  • 9
  • 28
  • 77
1
vote
0 answers

Error inflating class com.google.android.material.bottomnavigation.BottomNavigationView-

I am frequently getting inflate exception for android bottom navigation view on my firebase console. I have double checked my code. I made few changes but still application is crashing with inflate exception. It has no specific pattern and occurring…
1
vote
2 answers

How to implement ConstraintLayout toolbar

I created a new project on Android and opened a new interface with bottom navigation. Everything was going so well until I wanted to develop the app bar. I use Bottom Navigation View project, I want to add an app bar and add a search field. I have…
1
vote
0 answers

Android Studio: Bottom Navigation View not showing item in my menu added later time

I had use BottomNavigationView in my activity_main.xml, at first I only put 1 item in my menu, but then later on I added more item in my menu, but it only show the item I added at beginning even if I remove everything in my menu, it still only show…
1
vote
1 answer

How to create bottom Navigation bar like Material.io

I have been trying to configure the bottom navigation bar to looks like the material.io, I checked https://material.io/develop/android/components/bottom-navigation-view/ and…
1
vote
0 answers

Jetpack Navigation Component Back Stack

I'm using Jetpack Navigation Component with BottomNavigationView in my app. The application is something looks like this image: The app has 4 destinations: Home Categories Account Search(I open it when the user clicks on the search icon in the…
1 2 3
8 9