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
4
votes
2 answers

Android BottomNavigationView: too much space between icon and text

As of recently the bottom nav bar started to include some strange space between the text and icons (I think after I updated the dependency): (Colored red to see the boundaries) There seems to be a spacer inbetween the icon and text now, which…
Big_Chair
  • 2,781
  • 3
  • 31
  • 58
4
votes
1 answer

Jetpack Compose - Bottom navigation bar isn't showing with nested navGraph

I'm developing an android application using Jetpack Compose. For now, I have several screens (Login, Register, Messages, Profile and Settings). I used a root NavGraph to host the navGraphs of authentication and main screen (See the codes…
4
votes
1 answer

BottomNavigationView. Navigation to destination with deeplink cause to add destination fragment also in first tab

Let's say we have a bottom navigation view with 4 tabs, we have a deeplink for a fragment of 4 tab, so when navigating from this deeplink to 4 tab - it works as it should, but when after that manually select the first tab, a fragment of 4 tab is…
4
votes
2 answers

flutter rounded corner bottom navigation bar

I have a bottom navigation bar inside in ClipRRect (for giving rounded corner). It has rounded corners but no transparent corners. I am sharing image for showing the problem. How can i do transparent rounded corners? Code: bottomNavigationBar:…
gurkan
  • 509
  • 1
  • 4
  • 18
4
votes
2 answers

Jetpack Compose - Bottom navigation icon is not selected if it has nested navigation

I want to have a bottom navigation bar with two items/screens: Order and Account. Order is the start destination. Order has its own navigation and it has two screens: ItemList and ItemDetail. ItemDetail opens when an item is clicked in ItemList…
4
votes
0 answers

BottomNavigationView that opens detail in full screen

I'd like to build an app that has what I understand top be a three top level screen hierarchy like this: That is, Master screen displays different sections with different content, comprised of items that can be articles (green) or videos…
M Rajoy
  • 4,028
  • 14
  • 54
  • 111
4
votes
1 answer

Android : Add rounded corners to BottomAppBar with circular anchored FAB

I want to achieve something similar to this view, bottom navigation with top left and right rounded corner radius and a and anchored FAB
4
votes
0 answers

Problem while using navigation drawer and bottom navigation bar with different menu

The java class in which have used both.. import android.content.Intent; import android.os.Bundle; import android.view.MenuItem; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import…
4
votes
3 answers

android BottomNavigationView underline item

I'm using a BottomNavigationView in my app. Right now my navigation view looks like this: but I want it to be with underlined selected item, like this: Are there any ways to do this with some standard attributes?
4
votes
1 answer

Load data only once when using BottomNavigationView

I have a BottomNavigationView displaying Fragments, in my first fragment I'm using volley to fetch JSON data and populate it in a RecyclerView like below: private void loadRecyclerViewData() { StringRequest stringRequest = new…
ClassA
  • 2,480
  • 1
  • 26
  • 57
4
votes
1 answer

Bottom Navigation bar with fragments

I have a bottom navigation bar in my Main Activity. By clicking on one of the tabs in my bottom navigation, I want to change the fragment in the view. I have the following code: Main Activity: public class StartActivity extends AppCompatActivity…
Marcel
  • 472
  • 2
  • 6
  • 19
4
votes
2 answers

BottomNavigationView with FloatingActionButton inside CoordinatorLayout dont match position

I want to hide my bottom bar on scroll but a FAB should stay on the screen. If I put the FAB on top of BottomNavigationView using anchors but it appears behind it. If I put layout_insetEdge="bottom" to the BottomNavigationView then it works but make…
4
votes
2 answers

How to stop Bottom navigation bar overlapping recyclerview?

https://i.stack.imgur.com/Ymbrj.gif How to stop Android Bottom navigation bar overlapping recyclerview ? i need to solve problem but i have no idea. I've tried a lot of ways. In the end, I can not reach. I need your help. I read the current topics.…
user8312867
4
votes
1 answer

Android bottom navigation bar customization

I have successfully implementing simple bottom bar and it looks like picture 1. But I wanted to customize it further so it can looks like the bottom bar in Youtube's android apps, which when you clicked in one of the item, it will spread shadowing…
4
votes
1 answer

How to create a BottomBar as StickyBottomCaptureLayout in camera2 Android api?

Context: In the android-7.1.1_r12 api, the android.hardware.camera2 uses a StickyBottomCaptureLayout as a "BottomBar" to display the action buttons (as switch-camera, shutter and recent picture buttons). Whatever the device orientation, this…
1 2
3
17 18