282 questions
1
vote
1
answer
92
views
Flutter: hide persistent_bottom_nav_bar with OpenContainer animation
I am currently using persistent_bottom_nav_bar: 6.2.1 and trying to use OpenContainer to navigate between screens with animation. However, the problem is that when I use PersistentTabView as the main ...
0
votes
0
answers
40
views
Desparate navigation structure with Official Navigation Library
I'm aiming this scenario:
I have different features like auth with 3 screens, profile with several screens, email with several screens and so on... I want to setup a navigation structure that mainly ...
1
vote
2
answers
1k
views
Bottom Navigation Bar in material 3 android jetpack compose
When I want to round corner, I adding shadow to it, I have little border on top of my navigation bottom bar, so my shadow and rounded corner is not looking good, I want to make something like that
...
0
votes
1
answer
626
views
Why is the shadow not showing on my NavigationBar in Jetpack Compose?
I’m using Jetpack Compose and trying to implement a NavigationBar with a shadow, but the shadow isn’t displaying as expected. Here’s the code I have so far:
@Composable
fun MainScreen() {
val ...
2
votes
0
answers
40
views
Navigating to a top level destination doesn't save all toplevel states
Problem
There are three navigation graphs in my app as nested navigations : HomeGraph, ProfileGraph and MenuGraph. I want to achieve that when you navigate between these graphs through the ...
0
votes
1
answer
35
views
bottom navigation : icons are not fully visible
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
...
1
vote
1
answer
195
views
Kotlin Bottom Navigation bar is not alining to the bottom of the screen
I'm creating a simple app with a navigation bar and everything looks OK in the activity, but, when I run the app, the navigation bar is not alining to the bottom of the screen, it moves up. I tried ...
0
votes
1
answer
325
views
Adding Bottom Navigation to Existing Project Built with Activities (Android)
Several years ago I built an application using a few different Activities to handle different screens throughout my app (I was a complete beginner at Android app development).
As time progressed, so ...
0
votes
1
answer
237
views
Android: Fragment changes when I change to dark theme
I have an activity that uses bottom navigation for fragments and an options menu to choose the theme. The problem is when I change the theme the fragment changes as well to the first one, not the one ...
0
votes
1
answer
221
views
Jetpack Compose Simple Bottom Navigation
I’m currently working on an Android application using Jetpack Compose and I’m trying to implement a bottom navigation bar.
I have defined a sealed class for my navigation items, each with a route, ...
0
votes
1
answer
64
views
WARN Require cycle: src\Navigation\StackNavigation.js -> src\Navigation\TabsNavigation.js -> src\Navigation\StackNavigation.js
WARN Require cycle: src\Navigation\StackNavigation.js -> src\Navigation\TabsNavigation.js -> src\Navigation\StackNavigation.jsRequire cycles are allowed, but can result in uninitialized values. ...
0
votes
1
answer
154
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
1
answer
572
views
How to make my Tabbar transparent in MAUI App
I have used a customShellHandler to make a tabBar in my home screen placed bottom of my screen. Since I used margin and radius, the background of tab show as white. I wanted to make it transparent to ...
4
votes
1
answer
2k
views
Compose Bottom nav bar with custom shape and transparent around it
So I need to create a custom bottom nav that the top border is not a straight line.
I've managed making the custom bar have this shape with a custom shape I've created and clipped to it.
My problem is ...
1
vote
1
answer
87
views
How to change label of fragment toolbar while using fragment manager with bottom navigation component
I got 3 fragments and 1 activity. MainActivity, CameraFragment, HomeFragment, HistoryFragment
I just want to save all HistoryFragment states so whenever user access it, it won't recreated again.
...
1
vote
1
answer
102
views
I cannot navigate correctly in the bottom navigation bar - android bottom navigation view
There are 4 fragments in my application and 3 icons in the bottom navigation bar. When I press a fragment that is not in the bottom navigation bar, the navigation structure breaks down.
First, when I ...
0
votes
0
answers
53
views
Reselecting a tab on bottom navigation clearing stack while using navigation component
Have 4 fragments A,B,C,D in my bottom navigation setup with navigation component with A fragment as home destination , when I navigate from A to another fragment say fragment E with findNavController(...
0
votes
2
answers
47
views
How to use an image in buttomnavigationbaritem in Flutter?
I want to use a UK flag in buttom navigation bar, but the UK flag does not appear and only shows a purole color. When I put another photo (a transparent photo with letter Z written on it), it appears, ...
2
votes
2
answers
969
views
BottomSheetScaffold doesn't stick to the top of BottomNavigation when expanded
I am trying to use BottomSheetScaffold but for some weird reason when I use it on a screen with bottom navigation and expand the bottomSheet the bottom side of it moves a little bit to the top, but ...
0
votes
1
answer
395
views
Disable item selection in bottom nav bar
Okay so my case is that for certain scenarios, one or multiple items in the bottom nav bar would have the following behaviour:
The click for the item will show a popup
the popup can be cancelled
the ...
0
votes
1
answer
531
views
How to create Custom BottomNavigationBar similar to NavigationRail but horizontally in Jetpack Compose
I am trying to create a custom bottom navigation bar which looks similar to a Windows 7 bottom app bar or task bar. Something similar to navigation-rail but its horizontal.
All the bottom navigation ...
3
votes
0
answers
910
views
remove indicator color from NavigationBarItem in BottomMenu android compose
As per our requirement I need to set the container color of the BototmNav with 60% opacity. Due to this, when any icon is selected, container colors is displayed as background to the selected icon in ...
0
votes
1
answer
283
views
Multiple versions of BottomNavigationView
I would like to have two versions of the BottomNavigationView, each with its own set of tabs. Some are shared, some not. For example, Version 1 has Fragment A, B, C, D on the bottom, version two has ...
2
votes
2
answers
1k
views
when I re-select menu items from bottom navigation view the fragments are recreating
I am using bottom navigation view with navigation components, when previous selected menu item is reselected fragment is reopening from oncreate
When I open my activity document fragment is loading ...
1
vote
0
answers
33
views
Android Java Save State Between Fragments
I would like to ask how I am going to save the state between the fragments while using bottom navigation. For example, if I am on "HomeFragment" and I go inside it with a "...
6
votes
3
answers
3k
views
BottomNavigationItem doesn't adopt the material theme jetpack compose
I am migrating my app to jetpack compose and the theming and styling is giving me some headache.
I have implemented Bottom Navigation as explained in this tutorial.
I have also set the background ...
1
vote
1
answer
1k
views
How to handle bottom navigation button click 2-nd time at inner screen using compose navigation
I have an app, which represent a screen with bottom bar with 4 tabs. I use compose navigation with bottom bar. When user clicks on the bar the screen appears. How can I handle the situation when user ...
0
votes
1
answer
1k
views
App Crashes on building bottom Navigation
Created an app using Kotlin for the bottom navigation component but after launching it crashes each time.
MainActivity
class MainActivity : AppCompatActivity() {
override fun onCreate(...
0
votes
0
answers
164
views
how to make icons of bottom navigation bar transparent?
I am working on an android app where I have to take icons of bottom navigation bar transparent without any tint layer. How can I do that?
I have tried @android:itemIconTint="@color/tranparent&...
4
votes
0
answers
1k
views
How to blend the Flutter bottom navigation bar with the system navigation space at the bottom
I'm building a flutter app and I used the BottomNavigationBar widget everything seems to work fine but the color of the Navigation bar is not blending with the device navigation space. (The place ...
0
votes
1
answer
64
views
Android : Switching Bottom bar navigation
I am currently building an app with admin and user. I've used the template bottom navigation menu method. I've created two versions of the menu for admin and user. How will I be able to switch these ...
0
votes
3
answers
32
views
The Home fragment rises above the rest
when I switch between the fragment I created, the home fragment is not deleted, it writes on the others.
please i have an issue. I am using bottom navigation and nav controller. once I switch ...
6
votes
0
answers
3k
views
How add FAB to bottom navigation bar with Compose in Material3?
Every tutorial or example of what I want to achieve uses isFloatingActionButtonDocked = true in a Scaffold. This is not present in Material3 Scaffold and I presume its part of what achieves the the ...
0
votes
2
answers
254
views
Android BottomNavigation showes "Up Button" when navigating between tabs
I've sat up a bottom navigation bar in my app. When I enable action bar with navController, the up button shows when navigating between tabs.
[Fig.1: up button is gone when I'm in home destination]
[...
0
votes
2
answers
563
views
How to set in Android to be navigated to the same fragment every time from the bottom navigation bar?
I have 4 fragments: A, B, C and X.
A, B and C are found on the bottom navigation bar, so every time I click on item A, I get the A fragment on the screen, click on B, I get B.
When I click on C, I get ...
0
votes
1
answer
824
views
Jetpack Compose Bottom Bar icons do not fit into open element area
I create my BottomBar on Jetpack Compose. The main requirements are the absence of a background, large icons with captions and indents from the edges of the screen. For some reason, the icons are not ...
0
votes
1
answer
62
views
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, ...
1
vote
1
answer
635
views
Create an oval shape around Bottom Navigation Bar Icon - Android
I am trying to create an oval shape around my bottom navigation icon when selected as seen in the screenshot
bottom_nav_layout.xml
<com.google.android.material.bottomnavigation....
0
votes
0
answers
390
views
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 ...
0
votes
1
answer
3k
views
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()
...
4
votes
1
answer
2k
views
Change size of only one icon of bottom navigation view (Android)
I want to change the size of only ONE icon (3rd icon) out of the 5 icons I have used in my bottom navigation view.
I want The Center icon big like:
This is what I have tried:
private fun ...
1
vote
0
answers
310
views
bottom navigation view fragment re-created when selected tab
In my application i am using Jetpack Navigation with BottomNavigationView. I have like 5 fragments and when i am in Home fragment, i click tab2 item in bottom navigation view and i click tab1 again, ...
1
vote
1
answer
499
views
Do action when holding a button from bottom navigation bar
I wanted to enter a settings page when I hold down the home button on the bottom navigation bar. I looked for how to get the id of a button in the bottom navigation but couldn't find anything.
Do you ...
1
vote
1
answer
659
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
294
views
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 -...
10
votes
2
answers
3k
views
BottomNavigationItems padding
Is there any way to remove this padding from the BottomNavigationItem?
Image
If I have very large text, I have to use ResponsiveText to manage this, but that's not what I intended. What I need is that ...
0
votes
1
answer
1k
views
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 ...
4
votes
0
answers
2k
views
Android Navigation Component not saving fragment state with BottomNavigationView
I'm using Navigation fragment version 2.5.0. As release of version 2.4.0-alpha01, it's suppose to support back stack support for bottom navigation without writing any additional code. But my fragments ...
0
votes
1
answer
261
views
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 ...
2
votes
1
answer
3k
views
Bottom Navigation Bar issue using Navigation Component
The default behavior of Bottom Nav View when pressing back button is that navigation returns to home fragment and pressing back again quits the application however, when the home fragment is not the ...