Questions tagged [android-bottomnavigationview]

130 questions
1
vote
1 answer

Is there any way to prevent the bottom navigation bar from moving during rotation?

Im trying to get my bottom navigation bar to be fixed on a side of the screen. Let me use pictures to help you understand what I am hoping to achieve. As you can see, I am trying to achieve the navigation bar to stay in its same position (i.e. top…
1
vote
0 answers

Android other default values for tools:showIn

When working with NavigationView there is a tools:showIn="navigation_view" on its menu.xml file which make its preview turn into a hamburger menu style and not a regular Toolbar action item. Is there any other value we can provide to showIn that…
1
vote
1 answer

Android BottomNavigationView with Splash Screen Back Stack Issue

So I setup my BottomNavigationView (like here) using Navigation Component library and everything works fine, every tab can keep their back stacks. However, if I add a Splash screen (Fragment) and: Set it as start destination (popUpInclusive set to…
1
vote
1 answer

How to use a viewBinding in BottomNavigation

I'm trying to implement a bottomBarNavigation as I'm practicing how to use it. I'm confused , my menu is not showing as I'm trying to initialize it to a fragment. Please how do I do it?. Im still figuring how to use viewBinding. these are my code…
BlakOuz
  • 101
  • 1
  • 8
1
vote
1 answer

Customize BottomNavigationView to show text for the selected item, and icon for non-selected items

I'm trying to make this NavigationBottomView: All I want is to make selected item text instead of icon. I googled it and tried to make custom navigationBottomView item, but I found nothing like what I want.
1
vote
1 answer

BottomNavigationView with Jetpack Navigation not correctly showing the active menu indicator

I'm trying to do solve some navigation problems of BottomNavigationView using Jetpack Navigation. I'm using Jetpack Navigation 2.4.0-beta02. The first problem is the back button always navigates me back to the start destination. This one is solved…
1
vote
1 answer

How to remove floatingActionButton replaced fragment if other item is selected in bottom navigation bar

Iam working on bottom navigation bar and I have replaced fragment on onClickListener of floatingActionButton but that fragment is not removed if other item in bottom navigation bar is selected and two fragments are shown at a time. This is my…
1
vote
0 answers

navigation between deep nested graphs using Navigation Component

structure of navigations graph that is implemented is like image below. but unfortunatly when navigating from top fragments (OneFragment, TwoFragment and ThreeFragment) to lower fragments (OtherFragment), an exception…
1
vote
0 answers

Fragment - Recycler view not refreshing.(Fragment instance created once)

I have created the bottom navigation with five fragments, which won't be recreated again and again while clicking the tabs. This has been done to reduce the number of API calls. In all the fragments recycler view is present and a pull to refresh is…
1
vote
1 answer

Android: Fragment restore with BottomNavigationView, NavController and SafeArgs

i'm currently working on an Android app and encountered a problem concerning BottomNavigationView and Fragments. I know, there are similar questions like mine but either they doesn't solve my problem or they have no working answers. My app consists…
1
vote
2 answers

Customisation for Android BottomView

[![I want bottom bar like this][1]][1] Using below library in android to customize bottom tab bar : https://github.com/Droppers/AnimatedBottomBar It is quite easy to use and provide many animation. But, I don't want the menu text content to display…
1
vote
0 answers

Android Studio menu icons are not the color they should be

So I've created a bottom navigation bar with my custom icons. In the XML you can see how the icons look by default and I want that they look the same in my navigation bar. This is how the icons look after launching the app. It seems that they…
1
vote
0 answers

Why selecting item from DrawerLayout moves selection of BottomNavigationView to first tab

I am new to Navigation components. Currently working with an app which has both Drawer layout and BottomNavigationView. I have 3 tabs in BottomNavigaionView and 4 menu items in drawer. Each tab of BottomNavigationView and Drawer open a defferent…
1
vote
2 answers

BottomNavigationView in child fragment in Navigation Component

I want to achieve something like this image flow in android navigation component. Where the Dashboard Fragment is the start destination. And from here i can navigate to another fragment which have a bottom navigation view. Is this possible using a…
1 2
3
8 9