Questions tagged [bottombar]

89 questions
94
votes
13 answers

Error : IllegalArgumentException: The style on this component requires your app theme to be Theme.MaterialComponents

Below are my dependencies implementation 'com.google.android.material:material:1.0.0' implementation 'androidx.appcompat:appcompat:1.0.2' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' My layout.xml
Goku
  • 9,102
  • 8
  • 50
  • 81
92
votes
11 answers

BottomNavigationView with more than 3 Items: tab title is hiding

I have implemented BottomNavigationView with Android Support Design Library 25. But when I switched the tabs, the title of other tabs are hiding. But there is no such issue in the actual Bottom Navigation View. Any idea about the cause of the…
Yunus Haznedar
  • 1,584
  • 4
  • 23
  • 33
52
votes
8 answers

setOnNavigationItemSelectedListener deprecated

Currently I am working on an app which has a bottom navbar with three menu items. I had used setOnNavigationItemSelectedListener() for items being clicked. but now iam facing issue that the method has been depreciated. App Language: Java Issue:…
Jeyasurya U R
  • 666
  • 1
  • 4
  • 8
31
votes
11 answers

How to change BottomNavigationBarItem icon when selected, Flutter

I am new to Flutter. I have a BottomNavigationBar with 4 items. I want to change icon of the item when pressed. Please help. This is what I have done so far. bottomNavigationBar : new BottomNavigationBar( currentIndex: index, onTap:…
Fathima km
  • 2,539
  • 3
  • 18
  • 26
13
votes
2 answers

Jetpack Compose: Nested navigation with bottom bar navigation in a nested route

My app has the following structure and because Route B has a own bottom navigation bar and thus an own NavHost, how can I navigate from Screen C (opened from the tab bar) to Route A? - Nested Route "/onboarding_route", startDestination = 'start' …
11
votes
5 answers

Is there a way to achieve a dynamic height in bottom widget of SliverAppBar

The SliverAppBar has an attribute bottom which has to have preferredSize. Right now I have it returning constant value: ... new SliverAppBar( expandedHeight: _kFlexibleSpaceMaxHeight, flexibleSpace: new FlexibleSpaceBar(.....) ... …
Jerzy Kiler
  • 2,795
  • 4
  • 18
  • 12
11
votes
4 answers

How to create a Navigation Drawer and Bottom Bar in the same app

I am creating an app, and I want to have a Navigation Drawer and a Bottom Bar in the app. I think that I am going for a good way, but I Can do that the Navigation Drawer when I display it, this is not above the Bottom Bar, it is behind, so How can I…
ter2016
  • 141
  • 1
  • 1
  • 6
8
votes
2 answers

Flutter permanently hide navigation bar

I am facing an issue in Flutter, at least with the Android emulator, which is quite annoying. I am using a screen in full screen mode, so I wanted to get rid of the bottom navigation bar. For that, after researching and checking here in…
codeKiller
  • 5,493
  • 17
  • 60
  • 115
7
votes
5 answers

How to increase distance between items in BottomBar?

I want to make exactly the same, bottom bar with floating action button. I have used standart BottomNavigationView as well as this library, but I can't increase the distance between items. Is there a way to do that?
Dennis Zinkovski
  • 1,821
  • 3
  • 25
  • 42
5
votes
0 answers

In flutter how to open bottom sheet above bottom bar

I am using https://pub.dev/packages/persistent_bottom_nav_bar package to show bottom bar. I need to open bottom sheet when one of the bottom bar tab pressed. I have managed to show bottom sheet using showModalBottomSheet, but problem is it covers…
Sachin Tanpure
  • 1,068
  • 11
  • 12
5
votes
2 answers

Flutter | How to make custom button of BottomNavigationBar in flutter?

I want make a button with text and icon inside it, with custom background color and custom width. with fix position (not scrollable). would you like to help me please ? here are the code: bottomNavigationBar: BottomNavigationBar( type:…
Roman Traversine
  • 868
  • 4
  • 12
  • 22
5
votes
4 answers

Bottom app bar Navigation icon is not center vertical

I'm using android.support.design.bottomappbar.BottomAppBar but the navigation icon is coming in left top corner when option menu is added. without Option its working as expected (center_vertical). With option menu Without Option Menu Can any one…
5
votes
1 answer

Changing/removing items of Bottom bar in android

I have an activity with a BottomNavigationView, I need to switch items (remove old and add new ones) of my bottomNavigationView when a button is clicked. I tried all these options but none of them is working: …
Amal
  • 71
  • 1
  • 5
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…
3
votes
2 answers

How make Bottombar with custom shape fab button?

I want to make a bottombar with attach fab button like given below image. If anyone knows about that type of different shape button library with a bottom with fab then suggest to me. The image is given below make a bottombar with fab like this.
1
2 3 4 5 6