Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

Buttons and text not displayed in Fragments

I am testing bottom navigation for an Android app. In the fragment, the views—the buttons and Text views requires a larger height to display the text correctly; using wrap_content or a smaller height ...
Arunmal's user avatar
0 votes
2 answers
90 views

bottom navigation : The way to reduce the space below the text

There is too much space below the icon and text, as shown in the following picture. Could you let me know how I can reduce this? <com.google.android.material.bottomnavigation.BottomNavigationView ...
ny_k's user avatar
  • 1
0 votes
1 answer
263 views

Extra Space below Navigation Bar in Android

Image Shows Extra Space I am experiencing an issue with extra space appearing below the BottomNavigationView on all devices. In my layout, I have a ConstraintLayout that contains a Toolbar at the top ...
Ravi Saharan's user avatar
0 votes
1 answer
121 views

Cannot resolve class com.google.android.material.bottomnavigation.BottomNavigationView

I am using BottomNavigationView. But I am getting an error Cannot resolve class com.google.android.material.bottomnavigation.BottomNavigationView. Gradle apply plugin: 'com.android.application' ...
Moeez's user avatar
  • 488
0 votes
1 answer
103 views

How to Disable or Customize Shadow Effect in Material Design Components for Android Studio

I'm developing an Android app using Android Studio, and I'm using Material Design components, specifically BottomNavigationView. I want to disable or customize the shadow effect on this ...
Jules Gaudet's user avatar
0 votes
0 answers
14 views

How to implement back/PopUpTo when clicking the bottom navigation bar using setupWithNavController in Kotlin Android Studio [duplicate]

I used setupWithNavController to handle mutiple back stack navigation in Kotlin. I want to get back to the one of the navigation page item if the bottom nav bar is clicked. For example, there are 3 ...
Micky 's user avatar
0 votes
0 answers
115 views

Compose BottomNavigation - How to disable BottomNavigationTransition animation

Inside the Compose BottomNavigation class, there is a BottomNavigationTransition that changes the selected/unselected tab color with an animation progress. @Composable private fun ...
Mehdi Satei's user avatar
  • 1,591
0 votes
0 answers
21 views

When i select first bottomnavigation menu item it select second menuitem

After Anything order I move to My Order bottom navigation menu then I select Home it selects My Order again not open home screen BottomNavigation Image <com.google.android.material....
Vishal Thakur's user avatar
2 votes
3 answers
209 views

navController.navigate(R.id.tab_dashboard) messes up with bottom taps. Normal click on bottom tabs stop working

Facing an issue where using navController.navigate(R.id.tab_dashboard) to dynamically switch to a bottom navigation tab messes up with bottom navigation. Attached a video to explain the issue. Video ...
Hisham Muneer's user avatar
1 vote
1 answer
314 views

Cannot resolve method 'setupWithNavController(NavController)'

I implement a single-activity architecture with flow fragments in Java. My MainFlowFragment is where I setup bottom navigation view with 4 fragments inside this flow. MainFlowFragment.java: package kz....
Tatiana Kogai's user avatar
1 vote
1 answer
166 views

Android navigation graph with navviewholder fragment navigation issue when navigating using list click item

I have a very simple use case that I am surprised isn't working. I have a bottom view navigation controller with 2 fragments, a list fragment and a detailed fragment. When I navigate to the detail ...
user1743524's user avatar
0 votes
1 answer
1k views

Android 12 Splash Screen Exit Animation adds extra space at the bottom of the screen below the BottomNavigationView

When the exit animation of the Android 12 Splash Screen ends it adds some extra space below the BottomNavigationView as shown in the screenshots below While the Splash Screen's exit animation is ...
Prateek Gupta's user avatar
1 vote
1 answer
174 views

pressing back button is not changing the color of the icon of the bottom navigation bar

I am implementing bottom navigation bar with activities. I have created a selector which changes the color of the icon when clicked. But when I press the back button, it goes to the previous activity ...
Divyansh Singh's user avatar
0 votes
0 answers
92 views

Bottom navigation does not show icon and text

I created a bottom navigation in main activity and does not show menu icon or text I use the material library version 1.7.0 I changed the version to 1.6.1 and 1.5, but there was still a problem I ...
Amin's user avatar
  • 35
0 votes
1 answer
168 views

AppBar with Fragments and Bottom Navigation Bar

Not sure if I'm fighting an uphill battle but I'm currently struggling with AppBar, Fragments and Bottom Navigation Bars. I have a MainActivity that's a list view with an AppBar. It's created as a ...
jimgug's user avatar
  • 175
0 votes
1 answer
298 views

when i put bottomnavigationview android studio | The design screen appears blank

when i put bottomnavigationview android studio | The design screen appears blank activity_main.xml <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget....
ابو رئيس Abo reis's user avatar
2 votes
2 answers
1k views

Android bottom navigation not changing destination

I was trying to implement a simple bottom navigation view using android's navigation, but I think I'm missing a step. Here's what I did: At first I created four fragments. These fragments contain only ...
ganjaam's user avatar
  • 1,288
1 vote
0 answers
227 views

Android fitsSystemWindows is messing up the paddings on my BottomNavigationView

This is my activity layout <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout android:id="@+id/parent" ...
hushed_voice's user avatar
  • 3,598
2 votes
2 answers
871 views

Can't drag BottomSheet when clickable="true"? If not set clickable then click goes through it and fire on Recycleview item under it

Here is my Persistent BottomSheet <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android....
gpl's user avatar
  • 1,470
0 votes
2 answers
245 views

Bottom Navigation Bar and NestedScroll View hide my fragment activity

I have an activity with a bottom navigation bar and fragments to show trough the items of this activity, in the first item i have a fragment layout with a nedted scroll view menu with 14 options, but ...
Alexis Vilchis's user avatar
1 vote
1 answer
595 views

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 ...
Do Ji's user avatar
  • 45
0 votes
1 answer
908 views

How to apply custom drawable on Compose - BottomNavigation?

@AndroidCompose Thanks for paying attention on my question. I need to implement Bottom navigation in Android Compose and need to apply a custom drawable(Vector,9patch,PNG etc) background to that ...
Maddy Sharma's user avatar
  • 4,958
1 vote
0 answers
142 views

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. ...
Bitwise DEVS's user avatar
  • 3,370
0 votes
0 answers
514 views

BottomNavigationView not showing icons

I've checked all the other posts I can find on this and can't get the icons to even show in the Design preview but it is showing the navigation bar block in design view (with no text or icons). I am ...
Taylor G's user avatar
0 votes
2 answers
314 views

Invisible background in BottomNavigationBar

I want to set the background transparent, but I've tried everything and I can't set it. I let my XML code and a pic of the cell here: <?xml version="1.0" encoding="utf-8"?> &...
gjgjgjgj14's user avatar
1 vote
2 answers
1k views

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: ...
Sam Chen's user avatar
  • 8,765
3 votes
0 answers
272 views

How to customize the Shadow and Ripple Effect of the BottomNavigationView

I want to adjust the "RippleEffect" of the Material's design BottomNavigationView to achieve the following two design requirements the ends of the circle should be blurred-out the circle ...
Gianluca Veschi's user avatar
2 votes
1 answer
2k views

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 ...
BlakOuz's user avatar
  • 111
0 votes
1 answer
177 views

How to use setItemIconTintList with specific item? [BottomNavigationView]

I'm trying to show the user photo in BottomNavigationView but I don't know how to do it correctly. This solution is working fine but other items will lose their colors Drawable drawable = ...
Taha Sami's user avatar
  • 1,667
1 vote
1 answer
1k views

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 ...
Seif E. Attia's user avatar
8 votes
1 answer
5k views

Native Android -> How to create custom curved bottom navigation

So this is the navigation my designer made for our project. Height of the bottom navigation is 70dp. What I have tried so far. First I downloaded a vector drawable background from design and set it as ...
kostik's user avatar
  • 695
3 votes
1 answer
3k views

Reverting Window Insets on fragment change

I have three fragments. I want to apply a transparent status bar on just one fragment. For that purpose, I am calling the following hide method on the setOnItemSelectedListener method of the bottom ...
Taha Asif's user avatar
  • 383
1 vote
1 answer
292 views

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 ...
Bernhard Josephus's user avatar
0 votes
1 answer
3k views

Using nav host fragment and bottom navigation view inside fragment?

I have nav host fragment and bottom navigation view inside home fragment as below <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android&...
WISHY's user avatar
  • 12k
0 votes
1 answer
216 views

Latest BottomNavigtionView [duplicate]

I am creating an Android app and I stumbled upon the fact that the previous way to create a bottom navigation view has been deprecated. This is the error I am getting: '...
user avatar
1 vote
1 answer
108 views

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 ...
mayra's user avatar
  • 71
1 vote
1 answer
531 views

Navigation Component replace/ change backstacks

I have bottom navigation with navigation drawer setup with Navigation controller. I'm currently using the latest v2.4.0-alpha05 which manages backstacks for each bottom navigation tab separately. The ...
Prathamesh Badgujar's user avatar
2 votes
1 answer
576 views

UnsupportedOperationException while using BadgeDrawable with BottomNavigationView

I'm using BadgeDrawablewith BottomNavigationView . But when I put a badge in an Icon of the bottomNavigationView I get this Exception java.lang.UnsupportedOperationException: Failed to resolve ...
Ahmed Elsayed's user avatar
1 vote
0 answers
173 views

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 (...
mrzbn's user avatar
  • 655
0 votes
1 answer
101 views

Is it possible to move the screen without connecting in nav_graph?

I am using BottomNavigation. The transition from the screen of menu A to another screen, not the screen transition from menu A to another, is as follows. menu A(fragment) -> B screen(fragment) ->...
ybybyb's user avatar
  • 1,719
0 votes
1 answer
388 views

Dynamically change the FAB in MainActivity for Android

I have the following XML layout <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas....
Learn2Code's user avatar
  • 2,280
0 votes
1 answer
58 views

Have you recently discouraged using naviation component?

I am using bottom navigation for single activity. What I'm trying to do is do various screen transitions through the bottom menu (fragment). And we are implementing a function to switch screens ...
ybybyb's user avatar
  • 1,719
0 votes
0 answers
23 views

Navigation component with bottom navigation in android [duplicate]

After splashing, my app enters an main activity where the navigation button has 4 tabs, but until the user has logged in, instead of the profile tab, he should see the login fragment, but after ...
ZiZi's user avatar
  • 1
0 votes
0 answers
27 views

Opening a fragment which replaces nav_host with being able to go back

I am trying to show a new fragment where the nav_host_fragment is but I want the old one to show whenever I click on backButton or on an X in my app (I added that already). In the state that it is in ...
Simon Mair's user avatar
0 votes
1 answer
327 views

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 ...
Sampath Kumar's user avatar
3 votes
1 answer
2k views

Individual Navigation graph for each Bottom navigation view menu item - Android

My application contains a bottom navigation view with 3 menu items in the main activity, each menu item inflates respective navigation graphs in the navigation container view. Each graph has 2 or more ...
krish's user avatar
  • 57
4 votes
3 answers
3k views

Change the icon color in a BottomNavigationView

I want to change the color of the drawables used in a BottomNavigationView but the changes I've made don't seem to make a difference. I've tried to use the android:iconTint in the menu resource and ...
Amine Ch 99's user avatar
0 votes
1 answer
91 views

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 ...
ybybyb's user avatar
  • 1,719
0 votes
1 answer
367 views

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 ...
creativecoder's user avatar
6 votes
2 answers
832 views

BottomNavigation BadgeDrawable set displayed number in a specific Locale irrespective of selected one

The project supports RTL; Arabic in particular. The requirement is that all numbers must appear in English format even when language is selected as Arabic Locale, the way we achieve it everywhere is ...
dan.darajat's user avatar