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
0
votes
1 answer

Why the bottom spacing is not working in small screens in angular application after deployment

I have deployed my angular application successfully. But the problem is it is working fine for all devices except mobile. When it comes to mobile devices the bottom spacing is not applied for chrome, firefox, or edge. And works fine in the same…
0
votes
0 answers

Android Bottom Navigation Fragment androidx.navigation.fragment.NavHostFragment did not create a view

I am using android Bottom Navigation and gettimg this crash Caused by java.lang.IllegalStateException Fragment androidx.navigation.fragment.NavHostFragment did not create a view. Here is my setup method fun setUpNavigation() { val navView:…
0
votes
0 answers

Change size LottieDrawable android

I'm using BottomNavigation and add menu to Bottom Navigation then add LottieDrawable to MenuItem lottieDrawable = new LottieDrawable(); LottieCompositionFactory.fromRawRes(mContext,R.raw.oasis_animated_icon).addListener(new …
0
votes
1 answer

Bottom navigation bar overlap button in jetpack compose

This is my compose app. Scaffold( // main content modifier = Modifier.fillMaxSize(), scaffoldState = scaffoldState ) { Surface( modifier = Modifier .fillMaxSize() .padding(it), color =…
Kingfisher Phuoc
  • 8,052
  • 9
  • 46
  • 86
0
votes
1 answer

BottomNavigationView switching between activities - solutions appear deprecated?

I am using a BottomNavigationBar and as per recent blogs and research, it seems the best way to flick between activities using this bar is to use the setInNavigationItemSelectedListener. The issue is - this is…
0
votes
1 answer

BottomNavigation customization

Good afternoon I'm new to Jetpack Compose and I'm having some difficulties customizing BottomNavigation as I need. My current result is this: Current result And I want this be like this: Expected result The text doesn't seem to me to be applying the…
R0ck
  • 409
  • 1
  • 15
0
votes
1 answer

For BottomNavigation the selected Item is not highlighted in android

I have bottomNavigation in my android app as shown below in picture. It works fine if I just click on home, cart and other bottomNavigation Items. As you can see in picture that user can navigate to all categories in home. If I navigate to…
Zohab Ali
  • 8,426
  • 4
  • 55
  • 63
0
votes
0 answers

Is there a way to animate BottomNavBar Icon when selected

Is there a way to animate BottomNavigationBar Icon to be animated when selected? I tried doing but I get an error saying that: com.google.android.material.shape.MaterialShapeDrawable cannot be cast to android.graphics.drawable.GradientDrawable I…
0
votes
1 answer

How to not show bottom nav bar in other fragments except the section fragments?

I have a bottom nav bar with 4 section fragment attached. In every fragment there is something by clicking that I am going to other fragment which are not section fragment. I want to show bottom nav bar only in section fragment. So how to hide…
0
votes
1 answer

How to handle bottom navigation bar's fragments?

I have four fragments attached in my bottom nav bar. Now I am trying to go from one this fragments to any other fragment by clicking on a cardview. This is working perfectly but when I am going to that fragment to any other fragment(which are…
0
votes
0 answers

Bottom nav bar with curved edge and shadow- Jetpack Compose

I am trying to build a bottom nav bar with curved edges at the top start and top end. When setting a shadow, it is not showing the shadow correctly. How to set a shadow around? Or am I doing any wrong thing? Code BottomNavigation( …
0
votes
2 answers

FAB on top of Bottom Navigation

How to display a fab on top of a Bottom Navigation? This is what I tried:
0
votes
2 answers

Saving Fragment state with Android BottomNavigation

I'm new to Android development, so I do not understand many, perhaps elementary things, perhaps even the stated topic does not fully reflect my questions, I apologize in advance, I could not formulate more precisely. Please help me with some…
0
votes
1 answer

How to optionally remove TabStripItem from Bottom Navigation in NativeScript 8 JavaScript project

I have a NativeScipt 8 JavaScript project with bottom navigation and 3 tabs. I'd like the third tab to only be visible if a condition is true. On iOS, I can pop the bottom navigation's items array and this yields the results I want. On Android,…
David
  • 578
  • 3
  • 16
0
votes
1 answer

How to change the color that is around the selected item in android studio bottom navigation bar in Kotlin?

I couldn't found the way to change the color that is around the selected item in bottom navigation bar. Like the purple color in picture below. I tried changing the primary color(which is purple in default), and I also tried changing the…