Questions tagged [android-bottomnavigationview]

130 questions
0
votes
1 answer

Android Navigation Component not maintaining stack on switching between tabs

I have 3 bottom tabs and it used 3 different navigation graphs for each tab. When user play around and uses device back button then the back stack works fine like Home inner fragment Tap on middle tab say "browse" Now back-press the user taken to…
0
votes
2 answers

NativeScript-Vue: How to install BottomNavigation component

How can I install the BottomNavigation component which is used in the playground here? https://play.nativescript.org/?template=play-vue&id=Evc8t6&v=4 I am using NativeScript 8 and it looks like the latest Version of NativeScript do not support this…
0
votes
1 answer

How to switch existing fragments when the dialog is closed?

The main screen of the app is for bottom navigation. And there are 3 menus, all of which are fragments. Pressing the button on one of the fragments opens the dialog fragment window. And when the dialog is closed, the old fragment should be switched…
ybybyb
  • 1,385
  • 1
  • 12
  • 33
0
votes
1 answer

Cannot resolve symbol 'BottomNavigationItemView' in androidx

I removed implementation 'com.android.support:design:28.0.0' and migrated to androidx implementation 'com.google.android.material:material:1.4.0-alpha01' I like to know what is the equivalent code for BottomNavigationItemView. ` public void…
0
votes
1 answer

Hiding a BottomNavigationView during a fragment transition

I am creating an app using single Activity so on main_activity I set the fragment as NavHostFragment and on the bottom the BottomNavigationView. In fragment A (first tab selected), If I click on button_1...navigate on a new fragment (A1). Of course…
Carlos
  • 97
  • 1
  • 10
0
votes
3 answers

BottomNavigationView - Android Studio

I have used images as icon but I dont want them to look grey when they are not selected. It should look same as picture whether its active or not. What should I do? com.google.android.material.bottomnavigation.BottomNavigationView Thanks
0
votes
0 answers

Adding code to bottom navigation android studio

I have made a simple app using Android Studio with bottom navigation. It all works well until I add code to the Fragments. Where is the place I need to add code in this example? This part is written in the activity of a fragment. I have placed the…
Jan
  • 11
  • 1
0
votes
2 answers

How to get the selected Fragment instance inside the call to method onDestinationChanged()

I've created an application using the Bottom Navigation Activity template in Android Studio. In the main activity's onCreate() method I added an OnDestinationChangedListener to the NavController. I want to call some methods in the selected Fragment…
V.Lorz
  • 293
  • 2
  • 8
0
votes
2 answers

Android Kotlin; Why is it showing white background from Bottomnavigationview despite of setting background transparent?

The problem is that it is showing a white background in the bottomnavigationview, but I want it to have transparent. Why is it doing this? So looks my android app : Here is my…
0
votes
1 answer

How to remove animation while rendering bottom navigation view dynamically?

I am having animation problem while rendering Bottom Navigation View dynamically in Android. I am getting list of icons and label from server and rendering it programatically. 2 Problems : Icons are coming from right to left On slower phones, 2nd…
0
votes
1 answer

BottomNavigationView, how to call a function on one item, and use AppBarConfiguration for the others?

This is the normal way for configuring BottomNavigationView navigation: val appBarConfiguration = AppBarConfiguration(setOf(R.id.navigation_home, R.id.navigation_months, R.id.navigation_due_date_calculator)) …
0
votes
1 answer
0
votes
3 answers

How to Remove border around BottomNavigationView

How to remove border in BottomNavigationView like below. My layout: bottom_nav_activity.xml
0
votes
2 answers

Constraint layout issue in Android

So I recently moved to constraint layouts, but I can't figure this one out. So here is my code:
1 2 3
8 9