You're the best instructor on youtube, Because you are simplifying the tutorials to everyone who watching your videos, Keep going and never stop Stevdza
To those whose watching this in mid 2023. If you're having problems importing BottomNavigation and BottomNavigationItem. It's because material3 uses a new one. You can try this one NavigationBar { items.forEachIndexed { index, item -> NavigationBarItem( icon = { Icon(Icons.Filled.Favorite, contentDescription = item) }, label = { Text(item) }, selected = selectedItem == index, onClick = { selectedItem = index } ) } } But still a great vid!
You are the most exceptional RUclips instructor, effortlessly simplifying every concept. I am gaining a wealth of knowledge from you, and I aspire to become one of the top Android experts in the near future.
Very good video as always, what I didnt actually like is the navigation with compose, too much complicated when compared to the Navigation Library we already have when working with XML
Perfect, just a point: When we have the bottom bar, I think we should exit the app by pressing the back button on any destination (not first pop into HOME, then exit)
Cant use delegate currentBackStackEntryAsState() 5:40 also scaffold gives an error - Content padding parameter it is not used 1) fixed delegate with some kind of import with alt+enter that for some reason wasnt added automatically 2) Scaffold fix = @SuppressLint("UnusedMaterialScaffoldPaddingParameter") annonation. Omg compose is garbage. Thx for video anyway
Thank you for Awesome video and the Nested Navigation video. If you check comments lots of people want to know how would you structure following. Like a navGraph for a login flow, and a navGraph for bottom nav when user is logged in Login Screen, MainScreen which has bottom navigation bar. There is no much resource available for this (common) problem. And on stackoverflow few people are trying to solve using Two Navhost with different NavHostController. And nobody knows if this approach is correct. They are using because it works. And I have seen you commenting somewhere that we dont need two NavController for two Navhost. Appreciate if you could make video on this. Would love to see how you would solve the problem.
Many thanks for the explanation. Is it possible to have to more than one scafffold? Meaning 2 or more graphs, one per each bottom navigation item? How to mix each bottom item with its screen flow? Would much appreciate a mix between bottom navigation and multigraph explanation, Many thanks, keep up
Really great tutorial. Thank you! What's a good way to handle more than 8 screens? I have seen some apps use a hamburger or a 'more' icon on the right. How could we implement that? A thousand thanks!
Thank you for your interesting tutorials! If possible, i have a question. Based on this video and the previous one (Nested Navigation), is it possible to achieve an architecture where you have a navigation like Screen -> Screen with Bottom Navigation Bar and then navigating using Navigation Bar? Thank you!
@@StevdzaSan That's a wise answer xD. I asked because I don't get how you can manage the NavHost in such situation. In fact, for standard Screen2Screen navigation NavHost is usually called at high scope (let's say in setContent function) while in the NavBottomBar case you call it in the innerpadding scope of Scaffold composable to avoid making the NavBottomBar disappear at every transaction
@@StevdzaSan Yes i already watched (and liked!) it. Unfortunately i am not able to apply it to my case. Probably what i would need would be 2 different NavController to associate with 2 different NavHost: one in charge of Splash->MainScreen navigation, the second one in charge of navigating with BottomNavBar. Because i'm a noob, i don't know how to get 2 NavControllers -.-'
Hey, awesome video. Is there a way to not have content underneath the bottom bar? it seems to be "floating" and overlaps stuff on the bottom of the screen
Thank you for tutorial Sir. unselectedContentColor parameter not working for me. How do I fix that? I am switching to dark mode and my app is not changing colour according to the theme.
Found an error in my code. I did not wrap my scaffold in my app theme. 😊 But unselectedContentColor parameter not working for me. Do you have any suggestions for that?
Someone posted a fix on the next video in the playlist. "... use NavigationBar and NavigationBarItem from material3 in place of BottomNavigation and BottomNavigationItem"
Hi, really appreciate this video. I got some problems. The thing is that I use the same way to implement a bottom navigation, but once I trigger the button on one of my screen to navigate to another screen outside the bottom navigation, the app crash immediately. I use the same method to build navigation as in your last video. Can anyone help me?
Jetpack Compose involves too much coding; it's the worst. Who suggested it to Google ? Jetpack Compose seems like a step backward, reminiscent of the early stages of Android development.
Nice video! But what if I wanted to use on tab Icons, resources of my own? I have accomplished that using a R.drawable resource and using painter on Icon(). But i guess this way I cannot achieve the unselectedContentColor the way you did.
Imagine the following scenario: what if need a authentication flow before rendering this bottom tab nav graph... like a navGraph for a login flow, and a navGraph for bottom nav when user is logged in... How would you structure this kind of navigation?
You're the best instructor on youtube, Because you are simplifying the tutorials to everyone who watching your videos, Keep going and never stop Stevdza
Thanks buddy 💜🙏
100% agree with you!
To those whose watching this in mid 2023. If you're having problems importing BottomNavigation and BottomNavigationItem. It's because material3 uses a new one.
You can try this one
NavigationBar {
items.forEachIndexed { index, item ->
NavigationBarItem(
icon = { Icon(Icons.Filled.Favorite, contentDescription = item) },
label = { Text(item) },
selected = selectedItem == index,
onClick = { selectedItem = index }
)
}
}
But still a great vid!
youre a god and saved me
Thank you very much
alternative for selected and unselected property in NavigationBarItem?
to use this you : implementation("androidx.compose.material:material:1.7.2")
You are the most exceptional RUclips instructor, effortlessly simplifying every concept. I am gaining a wealth of knowledge from you, and I aspire to become one of the top Android experts in the near future.
Thank you Stefan, always easy to understand your tutorials. Please keep them coming.
Thanks! Yeah, I'll continue my Jetpack Compose journey, definitely! 🚀😊
Very good video as always, what I didnt actually like is the navigation with compose, too much complicated when compared to the Navigation Library we already have when working with XML
Perfect, just a point: When we have the bottom bar, I think we should exit the app by pressing the back button on any destination (not first pop into HOME, then exit)
Great man! I really appreciate your teaching skills!!
Cant use delegate currentBackStackEntryAsState() 5:40 also scaffold gives an error - Content padding parameter it is not used
1) fixed delegate with some kind of import with alt+enter that for some reason wasnt added automatically
2) Scaffold fix = @SuppressLint("UnusedMaterialScaffoldPaddingParameter") annonation.
Omg compose is garbage.
Thx for video anyway
Thank you for Awesome video and the Nested Navigation video.
If you check comments lots of people want to know how would you structure following.
Like a navGraph for a login flow, and a navGraph for bottom nav when user is logged in
Login Screen,
MainScreen which has bottom navigation bar.
There is no much resource available for this (common) problem. And on stackoverflow few people are trying to solve using Two Navhost with different NavHostController. And nobody knows if this approach is correct. They are using because it works.
And I have seen you commenting somewhere that we dont need two NavController for two Navhost.
Appreciate if you could make video on this. Would love to see how you would solve the problem.
Yeah I've received a lot of questions about it. I'll definitely think about making video on that topic. 🤔
Thank you - you explain it so well!
Thanks for your work man!!
You're welcome! 🚀
Imagine spending 10minutes to set up a Bottom Nav bar with the speed of Author. In old layout, a newbie can set up navigation bar in 2 minutes.
How is it possible to show a detail screen from home screen which show as full screen outside bottom screen .
Thanks great job. I need more
I will continue uploading videos for Jetpack Compose.
Thank you for your good tutorial 🙏
Glad I can help buddy! 💜
so if i want to add destination ( not for bottom navigation ) , do we need to make another screen class or just add another NavHost on MainScreen ?
Many thanks for the explanation. Is it possible to have to more than one scafffold? Meaning 2 or more graphs, one per each bottom navigation item? How to mix each bottom item with its screen flow? Would much appreciate a mix between bottom navigation and multigraph explanation, Many thanks, keep up
Watch my video about nested navigation. 👌
Thank you Stefan.
You're welcome buddy! :)
Is there a shorter and simpler way to implement this?
Really a great video, thanks
🙌🙌
Great video!
Really great tutorial. Thank you! What's a good way to handle more than 8 screens? I have seen some apps use a hamburger or a 'more' icon on the right. How could we implement that? A thousand thanks!
Make some big projects using jetpack compose
Thanks for the nice explanation. I have some issue when randomly and quickly switched between bottom nav item the app crashes.Can I get some help.
Thanks for detailed tutorials. Have you anything on navigation drawer?
Not yet, I'll keep that in mind for future video tutorials. 👍
Perfect explanation!
Is there a way to change between tabs swipping right or left?
You'll probably want to implement a ViewPager instead.
@@mikejawoski5904 thanks
Good videos!. How can I select the startDestination based on some condition on starting the app?
How do you pass arguments between bottom navigation screens?
Thank you for your interesting tutorials! If possible, i have a question. Based on this video and the previous one (Nested Navigation), is it possible to achieve an architecture where you have a navigation like Screen -> Screen with Bottom Navigation Bar and then navigating using Navigation Bar? Thank you!
Everything that can be achieved with Navigation component can be achieved with Compose Navigation as well.
@@StevdzaSan That's a wise answer xD. I asked because I don't get how you can manage the NavHost in such situation. In fact, for standard Screen2Screen navigation NavHost is usually called at high scope (let's say in setContent function) while in the NavBottomBar case you call it in the innerpadding scope of Scaffold composable to avoid making the NavBottomBar disappear at every transaction
@@frax84 Watch my video about nested navigation, you can have multiple nav graphs in your app 👍: ruclips.net/video/2sKnGloDJf0/видео.html
@@StevdzaSan Yes i already watched (and liked!) it. Unfortunately i am not able to apply it to my case. Probably what i would need would be 2 different NavController to associate with 2 different NavHost: one in charge of Splash->MainScreen navigation, the second one in charge of navigating with BottomNavBar. Because i'm a noob, i don't know how to get 2 NavControllers -.-'
@@frax84 You don't need two Nav Controllers for two NavHost's. You can pass one to both of them.
There are limited ImageVectors to choose from. How can I change this to use a Vector Asset, please?
Thank you for the video! Is it possible to use BottomNavigation with nested navigation to show it only in MainNavGraph?
You can achieve everything you want, even create two different NavHosts.
Yes, this is exactly what I am curious about.
@@StevdzaSan How to implement two different navhost?
@@slayer5171 Bro, I have this problem, Did you fix that? (Nested Navigation with Bottom Bar)
@@cumahaznedar1191 I am using state and just pass a handler to show and hide bottom navigation bar.
Man you are amaizing
Hey, awesome video. Is there a way to not have content underneath the bottom bar? it seems to be "floating" and overlaps stuff on the bottom of the screen
Check out this answer: stackoverflow.com/questions/66573601/bottom-nav-bar-overlaps-screen-content-in-jetpack-compose
Awesome 🔥
Nice explaination. Can we have the repo link of the sample?
Man, thanks for the video, u are the best. But can u do bottom bar with expandable fab ? i have some problems to do this
Thank you for suggesting, I'll keep that in mind.
@@StevdzaSan thanks a lot. I ve tried to do it by myself but I have problems wit expanded state, everything is moving downstairs
If you die you are a legend!
I see a fade animation when making transition betwen screens in my app, someone know how to disable that?
Bm - 11:28
Amazing, Plz also make a video on how to integrate payment gateway in jetpack compose.
thanks for this, is there a way to prevent the page from reloadin everytime you reopen it?
Save and restore screen state with nav controller when navigating away.
Thanks!
Thank you for tutorial Sir.
unselectedContentColor parameter not working for me. How do I fix that? I am switching to dark mode and my app is not changing colour according to the theme.
Found an error in my code. I did not wrap my scaffold in my app theme. 😊 But unselectedContentColor parameter not working for me. Do you have any suggestions for that?
Someone posted a fix on the next video in the playlist. "... use NavigationBar and NavigationBarItem from material3 in place of BottomNavigation and BottomNavigationItem"
How I can change the color of the bottom bar?
Thanks a lot
Can we make a custom one with rounded corners
Yes we can, I'll think about making a shorts video. Basically you can achieve that with a simple modifier.
Hi! How change color Bottom bar ?
Hi, really appreciate this video. I got some problems. The thing is that I use the same way to implement a bottom navigation, but once I trigger the button on one of my screen to navigate to another screen outside the bottom navigation, the app crash immediately. I use the same method to build navigation as in your last video. Can anyone help me?
I'll soon make a video about nested navigation with bottom navigation, in the next week probably. 👍
nice on stef
how to change background color sir
Another useful tutorial, thanks a lot. 👍
You're welcome buddy 🙏😉
Wow great ❤️.
Again, You are better than Phillps L. lol
Hello sir, how can I navigate from single screen(splash screen) to bottom navigation screen
BottomNavigation and BottomNavigationItem is not working right now
Did you find out the solution?
exactly
Add the dependency i.e androidx. compose .material: material :1.6.5
Hello, How can I hide the Bottom Navigation in the next screen?
Thanks for this video! But slow down please.
So this today, good content.
Can create a tutorial to work with mongodb realm?
Subed
Muito bom, procurei tutoriais em português, mas não encontrei. Esse deu certo
Teşekkürler
Música?
this is 10x times easier than xml way
Nice
Отлично
Very frustrating to follow, you do things way to quickly
You made it too long. Like if you're going to use this in bigger projects, this could make things confusing
Jetpack Compose involves too much coding; it's the worst. Who suggested it to Google ? Jetpack Compose seems like a step backward, reminiscent of the early stages of Android development.
Thanks!
Thanks!
Thanks again Andrew! 🙏❤
Thanks!
Nice video! But what if I wanted to use on tab Icons, resources of my own?
I have accomplished that using a R.drawable resource and using painter on Icon(). But i guess this way I cannot achieve the unselectedContentColor the way you did.
Hm, I haven't tried that. I guess you could try changing it's alpha state instead.
@@StevdzaSan it works. Thanks a lot! Keep up the good job!
Imagine the following scenario: what if need a authentication flow before rendering this bottom tab nav graph... like a navGraph for a login flow, and a navGraph for bottom nav when user is logged in... How would you structure this kind of navigation?