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
0
votes
1 answer

How to keep bottom navigation stay at the bottom by using Scrollview with the child is LinearLayout as the root

How to make my bottom navigation stay at the bottom with the root parent being Scrollview? The bottom navigation did not stay at the bottom when I change my root parent which is Scrollview.
lylyn
  • 13
  • 1
  • 6
0
votes
0 answers

Overlapping issue of fragments in android

I have a bottom navigation menu in my app, on "Create" menu. I am displaying the fragment page. It's working totally fine but when I click on my next menu which is "Fav", "saved", "hidden" and "more". The specified activity is opened with the…
0
votes
2 answers

Why i can't change icon color and text bottom navigation with gradient color android

I want to make color like example image. but I found a problem when changing icons and text using the color gradient because the attributes in the bottom navigation only accept color. Please Help me god bless…
0
votes
1 answer

How to open a new Fragment over existing fragment from android bottom navigation

As you can see below, I have this Fragment layout from my bottom navigator: So, when application user click on card item from recycle view, I would like to open another fragment over this Search Fragment. I'm trying to to that, but occurs this…
André Vitor
  • 59
  • 1
  • 13
0
votes
2 answers

Implementing fragments with the default BottomNavigationView

I made a simple app with the default bottom nav view. Now the codes are correct and the app is building but when I launch it, I have a blank fragment whatever menu item i click. MainActivity: package com.ali.mydesign; import…
0
votes
2 answers

Do fragments need to be always recreated when exchanging the fragment?

Is it really necessary to always recreate fragments when navigating the bottom nav menu like in this code? @Override public boolean onNavigationItemSelected(@NonNull MenuItem item) { Fragment selectedFragment = null; …
javaguy
  • 149
  • 1
  • 6
0
votes
1 answer

Prevent circular navigation logic in BottomNavigationView using Navigation component

I have a BottomNavigationView hooked up to 3 fragments (A, B and C) via the Navigation component. I also have a login fragment, which I am popping off the stack after successful login. Observed navigation behavior: A > B > C > A > B > C > B > Back >…
0
votes
1 answer

How to fix footer alignParentBottom="true" in scrollview layout

The problem I experienced when (Linearlayout) was set to alignParentBottom which contained it (TextView) and then pack RelativeLayout with scrollview (so that when the Keyboard appears all the views can be seen) - However, when the Keyboard appears…
vhlan.com
  • 15
  • 5
0
votes
1 answer

How to access this.state of a class in Bottom navigation bar (React Native)

I want to access this.state of Class MainAct in bottom navigation bar. So that when this.state updates navigation bar rerenders. Here is my code. I want to access 'this.state.data' in 'MainAct' of bottom navigation bar. (or any alternatives) And is…
0
votes
2 answers

How to disable a tab in bottom navigation view?

I have 4 tabs in my app. In which one is accessible without log-in but others can't be. So, I need to implement a functionality in which if a user clicks on that tab then rest 4 will be disabled and when I click on those tabs I only want toast but…
mishti
  • 183
  • 7
  • 20
0
votes
2 answers

Equally space menu items of BottomNavigationView

I'm using a BottomNavigationView (from now on BNV) to switch between Fragments, but I cannot find an XML attribute or just a way to have all the items (the images) equally spaced so that they fill the entire width in all the devices. My XML for the…
0
votes
1 answer

Android Switch in Bottom Navigation

I want to have a Switch in the Bottom Navigation to set the online/offline state of the user like below Image: The menu itself should be dynamic so i built it manually with: menu.add(Menu.NONE, R.id.navigation_dashboard, Menu.NONE,…
0
votes
0 answers

What should be ideal choice to go with Activity or the Fragment?

I am implementing an Activity having BottomNavigationBar with 4 clickable items. Let's call those items as Profile, Timeline, Messages, Find Friends. The user is taken to Activity with these 4 Option in Bottom Bar after authentication.My doubt is…
Abhishek
  • 1,008
  • 1
  • 16
  • 39
0
votes
1 answer

How do I put a scrollview in this layout without clashing with the bottom navigation?

I have tried so much and I can't get this to work.. How do I design this layout so that I can have a scrollview in between the appbar and the bottom navigation without moving the bottom navigation under the view or having part of the scrollview…
TheStranger
  • 1,387
  • 1
  • 13
  • 35
0
votes
0 answers

Dynamically change Toolbar MenuItems in Drawer+Bottom Navigation

I've created a DrawerNavigation which has a MenuItem (Home) that has a BottomNavigationBar. For the MenuItem "Hinzufügen" in the BottomNavigationBar I've added custom MenuItems for the Toolbar within the corresponding Fragment…