131 questions
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 ...
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
...
0
votes
2
answers
64
views
i am having problem on creating bottomNavigationView related to height, the height is doubled as i expected even when the height is set to wrap
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottomAppBar"
android:layout_width="match_parent"
android:layout_height="...
0
votes
1
answer
262
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 ...
0
votes
0
answers
44
views
Navigation component for fragments
There are in total 5 fragments: Home, Movie, TV, and Profile - part of the bottom navigation
Detail fragment - gives details for specific movie or TV series.
I was using a navigation component to ...
0
votes
1
answer
120
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'
...
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 ...
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 ...
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 ...
0
votes
0
answers
24
views
make bottom navigation views activity and when i run device manager it is not work
i make new acticity -->bottom navigation views activity. then i change in manifests intend from main to navigation. then i run in device manager but doesn work . message : NavigationActivity@...
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....
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 ...
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....
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 ...
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 ...
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 ...
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 ...
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 ...
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....
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 ...
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"
...
2
votes
2
answers
869
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....
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 ...
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 ...
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 ...
0
votes
1
answer
442
views
How to keep hiding bottom navigation bar when SearchView is touched/focused or Dialog is showed/focused - AndroidStudio/Java
I call this function in onCreate of every activity of my app project:
public void hideDeviceBottomNav ()
{
View decorView = getWindow().getDecorView();
final int flags =
View....
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.
...
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 ...
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"?>
&...
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:
...
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 ...
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 ...
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 = ...
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 ...
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 ...
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 ...
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 ...
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&...
0
votes
1
answer
539
views
BottomNavigationView with navhostfragment not showing fragment, android?
I am using navhostfragment in fragment along with bottom navigation view.
Below is the xML
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/...
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:
'...
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 ...
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 ...
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 ...
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 (...
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) ->...
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....
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 ...
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 ...
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 ...
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 ...