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'
Пікірлер: 133
@muminoloruntola21463 жыл бұрын
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 ..
@this-is-bioman3 жыл бұрын
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.
@_angel_mohammadi39522 жыл бұрын
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
@iJuce3 жыл бұрын
this channel is a learning goldmine
@kevinyee95504 жыл бұрын
Thanks for the tutorial, it's good to have an updated one on the subject. Android tools get updated so fast.
@Indently4 жыл бұрын
Agreed! I'll try to kee everything up to date on my channel!
@MarianoAltuna3 жыл бұрын
your channel is the best I found, you are the best
@andrei86832 жыл бұрын
perfect, quick and effective. Love such videos
@justinlin52353 жыл бұрын
Thanks for the tutorial. It’s really great!!
@RahmatKhanZai893 жыл бұрын
Thanks a lot. I have fixed a issue watching this video.
@mondragondelgadomezlyzahor32602 жыл бұрын
YOU ARE MY HERO!!!! Gracias a ti pude salvar mi tarea :(
@muminoloruntola21463 жыл бұрын
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
@jonathanestrada16873 жыл бұрын
You help me a lot, thank you!! ♥️
@nykur93833 жыл бұрын
Man you make it simple for me ty
@hanadanefa78374 жыл бұрын
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
@rifqi4583 жыл бұрын
Damn, this is much simpler. Thank you
@Indently3 жыл бұрын
Hey Rifqi, no problem at all, I'm happy I could help!
@blessmewest3 жыл бұрын
thenks so much!!!!!!!!!!!! u saved me
@muhammadcandraalifisya2652 жыл бұрын
you are my hero dude
@rasarodchawang23404 жыл бұрын
Thank you very much. ❤❤❤
@whitemamba002 жыл бұрын
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.
@davidandyka57606 ай бұрын
excuse me, 4:44, where is this comes from (bottom_navigation), i got stuck at this one
@omarvelasco16822 жыл бұрын
You are the best
@HuanNguyen-np9uw3 жыл бұрын
lovely tutorial, tks
@jookim34033 жыл бұрын
You save me !! tks !!
@aleixsolermarti58333 жыл бұрын
Bro thank you so much, I spend 3 days searching how the fk this shit works and u explained it in 5 min
@juliocamacho62983 жыл бұрын
Excellent thanks
@codewithsas Жыл бұрын
Thank you so much
@lunsim Жыл бұрын
Could you apply lottie animation into BottomNavigationView using navigation graph?
@Jlevk2 жыл бұрын
Main activity dont see my element bottom-navigation. And one more problem, i see bar in phone but xml is doesn't have it in studio
@winnuayi32663 жыл бұрын
simple and straight to the point.
@phonegames28574 жыл бұрын
thx sooooooooo much bro
@cosmostv82964 жыл бұрын
thanks Federico Cotogno
@acunningclown2 жыл бұрын
How do you change the font size of the bottom navigation menu?
@Prod.JXXN.3 жыл бұрын
Nice video!
@kleber0a0m9 ай бұрын
Muito bom o vídeo, ajudou bastante. Obrigado =)
@androidmillennium92662 жыл бұрын
Thanks a lot
@hanadanefa78374 жыл бұрын
And a floating window, that draw over other app? Its like the app is on top of another app
@thealchemist64453 жыл бұрын
Awseome quick..
@ivan86478 Жыл бұрын
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?
@hanadanefa78374 жыл бұрын
Can you make also a tutorial regarding In App Purchase, where the case is the sells 10gold and 100gold, can you make a tutorial of it?
@phantom20463 жыл бұрын
supportFragmentManager is not being recognized (Unresolved reference: supportFragmentManger) what can be the problem?
@marymaria58653 жыл бұрын
good job
@sb-dor2 жыл бұрын
Please answer my question. Why do these buttons work only after double-clicking ?
@zethbox86192 жыл бұрын
Doesn't display the bottom navigation bar for me
@riyazmohamed65322 жыл бұрын
what is itemid in main activity
@kissgergo5202 Жыл бұрын
Could someone explain how to do it with activites instead of fragments?
@shubhamnaik19823 жыл бұрын
Bhai, full sequential course banayo na Kotlin for Android ke liye.
@D3r_3k_4 жыл бұрын
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!
@Indently4 жыл бұрын
I'll work on it! Thanks for the support!
@pixelPlaygourd3 жыл бұрын
Osm
@chubakv3 жыл бұрын
I have problem with button_navigation. Cant call in MainActivity :(
@jeewanthalahiru24353 жыл бұрын
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
@francoisch68563 жыл бұрын
@@jeewanthalahiru2435 Thank you so much!
@liztorres152 жыл бұрын
El tiene la razón con si cogió, gracias
@Area-yy1xw Жыл бұрын
@@jeewanthalahiru2435 Life Saverrr! Thank youu! ❤❤❤
@JiggyJiggy212 ай бұрын
@@jeewanthalahiru2435 omg, thank you so much! I had the same issues couldn't find out why.
@tnnz99203 жыл бұрын
Sir how to make it floating on scroll view?
@racoon_yt Жыл бұрын
My setOnNavigationItemSelectedListener is crossed out, help please
@brandanjong30924 жыл бұрын
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
@janniscodingroom43574 жыл бұрын
Check if you surely used the "setOnNavigationItemSelectedListener" and not the "Reselected" one.
@PMTFILMS3 жыл бұрын
when i was in the final stage of writing the code in the mainactivity.kt the val functions after the = sign were all red
@Indently3 жыл бұрын
try findviewbyid
@PMTFILMS3 жыл бұрын
@@Indently would i put this in the main activity?
@swethaaresetty31053 жыл бұрын
@@PMTFILMS TRY THIS val bottom_Navigation = findViewById(R.id.bottom_navigation) as com.google.android.material.bottomnavigation.BottomNavigationView bottom_Navigation.setOnNavigationItemReselectedListener { } }
@robertlaguna35033 жыл бұрын
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
@francoisch68563 жыл бұрын
Same here
@hanadanefa78374 жыл бұрын
thanks for this tutorial, but i don't know why mine behaves different,
@Peter-Petes3 жыл бұрын
Can a fragment hold RecylerView while using bottom navigation Bar ?
@Indently3 жыл бұрын
yes
@DNightmareGT3 жыл бұрын
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?
@Indently3 жыл бұрын
Hey, I wouldn't be able to answer that without doing some research on Google. Have you already tried writing the same question on Google?
@DNightmareGT3 жыл бұрын
@@Indently yo, just figured it out tho, i could just add {} in the navigations and it actually worked
@alienalien92884 жыл бұрын
hi, does it matter what implementation verson u user for material? like u use 1.1.0 but could i use 1.2.0-beta01?
@Indently4 жыл бұрын
I haven't tried, but it should work the same unless they explicitly updated something in the documentation. But just try it out!
@alienalien92884 жыл бұрын
@@Indently hi, thx and imma try it out btw quick response :) nice!
@alienalien92884 жыл бұрын
@@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?
@lifedreamtv3 жыл бұрын
I also have a probelm - makeCurrentFragment is unresolved :(
@ethiomusic31583 жыл бұрын
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.
@axedexango3 жыл бұрын
Hello nice tutorial, but i have a question how i replace a fragment when i click in a button on home_fragment?
@Indently3 жыл бұрын
I recommend searching the navigation component which is part of the new Android recommended architecture components. It makes life easy
@axedexango3 жыл бұрын
@@Indently ok thanks
@jeewanthalahiru24353 жыл бұрын
bottom_navigation cannot be called in MainActivity, is there any import mechanism or something for do that?
@Frank-zv4up Жыл бұрын
you ever got this resolved?
@jeewanthalahiru2435 Жыл бұрын
@@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
@sebastiangortz18884 жыл бұрын
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.
@Indently4 жыл бұрын
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 :)
@josephchizororo34603 жыл бұрын
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?
@Indently3 жыл бұрын
use findviewbyid
@swethaaresetty31053 жыл бұрын
TRY THIS val bottom_Navigation = findViewById(R.id.bottom_navigation) as com.google.android.material.bottomnavigation.BottomNavigationView bottom_Navigation.setOnNavigationItemReselectedListener { } }
@kennyargentokennyargento26764 жыл бұрын
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
@LuisMartinez-ku6is3 жыл бұрын
i have the same problem Dx did you fixed it?
@ricardoferreira98683 жыл бұрын
yeah me too
@swethaaresetty31053 жыл бұрын
@@ricardoferreira9868 it works even though it shows red line
@swethaaresetty31053 жыл бұрын
@@LuisMartinez-ku6is it works even though it shows red line
@bismoaghna54073 жыл бұрын
why button_navigation cant call in MainActivity ? its red
@finnk20123 жыл бұрын
im having the same problem
@chubakv3 жыл бұрын
@@finnk2012 and I
@swethaaresetty31053 жыл бұрын
TRY THIS val bottom_Navigation = findViewById(R.id.bottom_navigation) as com.google.android.material.bottomnavigation.BottomNavigationView bottom_Navigation.setOnNavigationItemReselectedListener { } }
@swethaaresetty31053 жыл бұрын
@@finnk2012 TRY THIS val bottom_Navigation = findViewById(R.id.bottom_navigation) as com.google.android.material.bottomnavigation.BottomNavigationView bottom_Navigation.setOnNavigationItemReselectedListener { } }
@liew03283 жыл бұрын
@@swethaaresetty3105 It's working. Thank you so much :)
@eldinpita3 жыл бұрын
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?
@rhinokyanui27022 жыл бұрын
did you find a fix?
@BillyLegumbres Жыл бұрын
But what if i want to move from activity to activity with it
@Indently Жыл бұрын
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!
@ronanirvine99103 жыл бұрын
I cant seem to get the "bottom_navigation.setOnNavigationItemSelectedListener" part to work, it just turns red for not good reason
@jevitamariasaldanha16183 жыл бұрын
did you find a solution?
@ronanirvine99103 жыл бұрын
@@jevitamariasaldanha1618 nope but its too late anyways
@chiragkumar19683 жыл бұрын
My bottom navigation hiding behind back/home button layout. What to do?
@Indently3 жыл бұрын
Type it in google
@MiYakudzik3 жыл бұрын
Maybe you chased wrong Layout type?
@theguywithatimemachine4364 жыл бұрын
How can i implement the bottom navigation on a fragment because i have the navigation drawer on the main activity thanks in advance
@Indently4 жыл бұрын
I would have to do some research, but can't you just use layout_above or something in the XML so everything gets placed above the navigation bar?
@theguywithatimemachine4364 жыл бұрын
@@Indently i never thought of that i have to try it out thanks
@muminoloruntola21463 жыл бұрын
@@theguywithatimemachine436 Did it work?
@theguywithatimemachine4363 жыл бұрын
@@muminoloruntola2146 yes i managed to archive this but i did it using java
@muminoloruntola21463 жыл бұрын
@@theguywithatimemachine436 Oops I don't know java.
@mondragondelgadomezlyzahor32602 жыл бұрын
TE AMO TE AMO TE AMO TE AMO
@aquinorodriguezdafne44412 жыл бұрын
x2
@Genio77813 жыл бұрын
Could you convert this into Java?
@Indently3 жыл бұрын
Kotlin automatically converts this into Java already, try Kotlin.
@ProgrammerTimes Жыл бұрын
great work bro i have created similar video on my channel if you have time do check it
@gagasnusa60153 жыл бұрын
Why i cant call my bottom navigation id?
@Indently3 жыл бұрын
good question
@gagasnusa60153 жыл бұрын
@@Indently thanks, case solved🎉
@pulkitarora24723 жыл бұрын
how did u solve it i am having same problem
@mohamednoemancoutry36643 жыл бұрын
@@Indently Me too can you explain to me how can I call it
@swethaaresetty31053 жыл бұрын
@@gagasnusa6015 TRY THIS val bottom_Navigation = findViewById(R.id.bottom_navigation) as com.google.android.material.bottomnavigation.BottomNavigationView bottom_Navigation.setOnNavigationItemReselectedListener { } }