In this tutorial I'll be showing you how to create a bottom navigation bar in Android Studio using Kotlin. Dependency: implementation 'com.google.android.material:material:1.1.0'
This is exactly what I want from a youtube tutorial !!! Fast, easy, efficient and useful !!! Thanks a lot man, I love your work, keep the great work going ! It was very helpful for me
Can't still thank you enough. I started this language 2 weeks ago and I had a really weird problem with navigation bar.. Was about to sleep another third day of failure when your video came up thanks ..
Excellent! That was helpful and without any unnecessary talk! I also love your clear pronounciation which is effortlessly easy to understand for non-native speakers.
You and Denis Panjuta are the best cause it was so easy to understand what you taught to me today. Could you make a video of a shopping application for food Please?...I'm missing some context and experience and I would be delighted to have your help
findViewById(R.id.bottom_navigation).setOnNavigationItemSelectedListener { when(it.itemId){ R.id.ic_home -> makeCurrentFragment(homeFragment) R.id.ic_favorite -> makeCurrentFragment(favoriteFragment) R.id.ic_setting -> makeCurrentFragment(settingFragment) } true } this works for me
Hello, Thank you for great tutorial, I have a question, for example what if I only want to resize Favorites part, how to I change size of this icon ? I can resize all of them but I can't resize one of them, thanks.
man i have a problem, can you please help me? when i use the setOnNavigationItemSelectedListener android studio does not recognize the id of my bottom navigation bar and it just doesn't work i already checked all my code and its the same
Thanks for this video, very interesting! but... i have problem in the 04:45 minutes, the error messege is Unresolved reference: itemId: when (it.itemId){ can you help me please?? thanks you so much
how can i make an extended floating action button on the fragment let say on home fragment that you create? and put some toast after clicking the extended floating action button
TRY THIS val bottom_Navigation = findViewById(R.id.bottom_navigation) as com.google.android.material.bottomnavigation.BottomNavigationView bottom_Navigation.setOnNavigationItemReselectedListener { } }
@@finnk2012 TRY THIS val bottom_Navigation = findViewById(R.id.bottom_navigation) as com.google.android.material.bottomnavigation.BottomNavigationView bottom_Navigation.setOnNavigationItemReselectedListener { } }
@@PMTFILMS TRY THIS val bottom_Navigation = findViewById(R.id.bottom_navigation) as com.google.android.material.bottomnavigation.BottomNavigationView bottom_Navigation.setOnNavigationItemReselectedListener { } }
If in each option of the navigation bar there are different fragments, how can you make that when you click on an option of the navigation bar, it returns to the main fragment instead of staying in the last fragment?
Hi, I've followed the whole tutorial I can see the bottom navigation icons in my physical device. However when I click on them they stay in one fragment e.g. when I click on settings it still shows the text Home. And I have changed the text to say settings. But still its not changing everytime I run the app. Thanks
@@Frank-zv4up findViewById(R.id.bottom_navigation).setOnNavigationItemSelectedListener { when(it.itemId){ R.id.ic_home -> makeCurrentFragment(homeFragment) R.id.ic_favorite -> makeCurrentFragment(favoriteFragment) R.id.ic_setting -> makeCurrentFragment(settingFragment) } true } this works for me
Thank you very much, it worked for me !! You could make a video explaining how to make a Drawer Menu that opens fragments and has its return button in the toolbar You have earned a new subscriber!
yo, i am using the pop up navigation menu which is kinda standard (the left navigation menu), so the issue i am facing is when i click one of the navigation, it does work but it doesnt close upon clicking, any solution for it?
It is good tutorial. But you rushed highly. I did all but when I click the icons, the app goes wrong and disappear from the emulator. And when I remove the fragments, I can see the icons but they don't listen at all. And the other thing is, I couldn't get the titles with the icons. Why? Android Studio couldn't detect me where I missed it. Please help me.
great video, thank you very much!!!! if anyone can help me please. i am having a problem on the MainActivity.kt. My bottom_navigation.setOnNavigationItemSelectedListner line is coming up as an unresolved reference for bottom_navigation. anyone know what the problem might be?
TRY THIS val bottom_Navigation = findViewById(R.id.bottom_navigation) as com.google.android.material.bottomnavigation.BottomNavigationView bottom_Navigation.setOnNavigationItemReselectedListener { } }
Hey can you maybe help me? would be really nice from you :) Here's the problem: I copied the code exactly the same way and yet the pages do not link to me. Even if I choose a "fragment (blank)" I cannot select the things from / to which you can (inclode fragment factory methods? Or crear layout XML?) Maybe that is the problem.
Hey Sebastian! I can't help with the amount of information provided, but I definitely recommend asking on Stack Overflow. Either you missed a very small detail, or it could be something else. Thanks for commenting :)
@@Indently hey code palace, i have a problem, so in one of my fragments i created a logout textview but how do i make it so it makes me go to another activity from an onclicklistener?
This was great! however for some reason on the bottom bar, The icons are showing up, but only under the Home Icon does it say "Home" under the other icons there is no writing. Anyone come up with that issue?
We’re sorry to hear that you’re facing trouble with this tutorial. We have some suggestions for you: - First, try watching the tutorial again to check if you missed something (remember that programming languages are strict, and that uppercase & lowercase characters are completely different.) - Second, if you’re facing an error, try copying and pasting it into the Google search engine, it’s the fastest way to find the best response for the issue you are facing. - Third, if it’s still too confusing for you, try taking a step back and working on an easier project to try to improve your programming skills before tackling the project in this video. We wish you the best of luck with your project!
@@gagasnusa6015 TRY THIS val bottom_Navigation = findViewById(R.id.bottom_navigation) as com.google.android.material.bottomnavigation.BottomNavigationView bottom_Navigation.setOnNavigationItemReselectedListener { } }