Navigation Drawer with Navigation Component - Android Studio Tutorial

  Рет қаралды 57,597

Stevdza-San

Stevdza-San

Күн бұрын

🏆 My Online Courses
⭐Discount Coupon: LAUNCH-STEVDZA-SAN
stevdza-san.com
🐱‍👤 Wanna become a member? Join!
/ @stevdzasan
📸 Instagram
/ stevdza_san
The navigation drawer is a UI panel that shows your app's main navigation menu. The drawer appears when the user touches the drawer icon in the app bar or when the user swipes a finger from the left edge of the screen.
The drawer icon is displayed on all top-level destinations that use a DrawerLayout.
To add a navigation drawer, first declare a DrawerLayout as the root view. Inside the DrawerLayout, add a layout for the main UI content and another view that contains the contents of the navigation drawer.
Navigation Component: • Navigation Component -...
Safe Args: • Safe Args with Navigat...

Пікірлер: 76
@nitin88mehta
@nitin88mehta 4 жыл бұрын
Absolutely loved your video...Other videos of 30 minutes and 40 minutes just shows the procedure without explaining...I understood really well...Thanks a lot
@kushalsharma8635
@kushalsharma8635 3 жыл бұрын
Thx bro (from Stevdza-San)
@rameshramesh-bd2wu
@rameshramesh-bd2wu 4 жыл бұрын
All your tutorials are useful for who are already familiar with Android development but beginners like me it was very hard to catch-up.
@StevdzaSan
@StevdzaSan 4 жыл бұрын
That's why I will make full courses on Android Development in the future, because there are so many details to cover, and it's impossible with just one video.
@rameshramesh-bd2wu
@rameshramesh-bd2wu 4 жыл бұрын
@@StevdzaSan I am eagerly waiting for that or would you suggest some other resources to learn Android development from scratch Namaste & Regards Loves from India❤️
@StevdzaSan
@StevdzaSan 4 жыл бұрын
@@rameshramesh-bd2wu You can find an ebook online on Java or Kotlin, I recommend you to start learning Kotlin.
@lbars
@lbars 3 жыл бұрын
Q: I don't want back button. So, should i remove connections in nav_graph.xml file? Nice video 😃
@JEALANI313
@JEALANI313 2 жыл бұрын
Sir u made it so simple and so easy ... Thanks Alot 😍
@lucye7320
@lucye7320 4 жыл бұрын
Great series! Very helpful to see how all the pieces go together. Thank you!
@kushalsharma8635
@kushalsharma8635 3 жыл бұрын
Welcome. (from Stevdza-San)
@athisii_ekhe6167
@athisii_ekhe6167 2 жыл бұрын
Thanks for the video. Little help is needed, after the drawer icon is opened, again clicking drawer icon doesn't close the drawer. how to implement it?
@ethiomusic3158
@ethiomusic3158 3 жыл бұрын
How can I change the activity_main (xml) from ConstraintLayout to Drawer Layout once I have already changed it for another layoutpurpose (for instance I might have used it as Linear Layout or RecyclerView)?Please tell me the technique how to solve it?... We do take home page (mainactivity)for everything but it is stuffed with other issues… While I use fragments, they crushed when Irun it… I need help guys please help me. I am a new developer with zeroeducation and experience but I understand how to make apps
@deepeshkumar1704
@deepeshkumar1704 Жыл бұрын
if drawer is open, and back button pressed,then without closing drawer its directly quit, how to solve this?? or how to lock drawer layout in some fragments?? pls
@mohammadgoudarzi5697
@mohammadgoudarzi5697 4 жыл бұрын
Short and useful! Thank you!
@kushalsharma8635
@kushalsharma8635 3 жыл бұрын
Thanks for supporting . (from Stevdza-San)
@Lenduya
@Lenduya 3 жыл бұрын
So this way, if we had fragments A B C D, we'd have to create toB, toC and toD actions for A then? And then toA, toC and toD actions for B? That cannot be correct.
@josephcobbinah5412
@josephcobbinah5412 3 жыл бұрын
I totally agree with you. It feels a bit clumsy. I'm building an app with 9 items in the drawer and users should be able to navigate from any item to any other one so that means about 72 actions already. Am I doing something wrong?
@soract4371
@soract4371 4 жыл бұрын
Thanks a lot! Keep the good work! I prefer Java, but I understand why you are using Kotlin and as you already mentioned, we can convert kotlin to java. I just subscribed :)
@oluwatosinoseni7839
@oluwatosinoseni7839 3 жыл бұрын
Lol how
@zmemes69
@zmemes69 2 жыл бұрын
how to disable item when it's selected i couldn't find any reference in docs please help
@kumar_k19
@kumar_k19 2 жыл бұрын
Thanks for the video
@_johndoew
@_johndoew 2 жыл бұрын
hello guy, i love your channel :)
@sedrekblak
@sedrekblak 4 жыл бұрын
Hey man , great content , I have a small problem the navigation drawer doesn't close when I click the hamburger button again and there no any animation
@kushalsharma8635
@kushalsharma8635 3 жыл бұрын
Please, use stack overflow and also recheck or match your complete code with the video
@gabrielgil3486
@gabrielgil3486 4 жыл бұрын
I like your videos! They all have good content, but I am a java developer and Kotlin makes it more dificult to understand.
@StevdzaSan
@StevdzaSan 4 жыл бұрын
You can copy and paste Kotlin code in Java class and Android Studio will automatically convert it for you.
@gabrielgil3486
@gabrielgil3486 4 жыл бұрын
@@StevdzaSan Thanks !
@Sk-gb2hx
@Sk-gb2hx 3 жыл бұрын
No access to onSupportNavigateUp() from fragment, can you help me with it ?
@samirshrestha5252
@samirshrestha5252 3 жыл бұрын
Great tutorial, but after drawer icon is opened, again clicking drawer icon doesn't close the drawer. and back icon is not shown in drawer icon place, after clicking drawer icon. Seeking for help! ( using kotlin )
@athisii_ekhe6167
@athisii_ekhe6167 2 жыл бұрын
found the solution?
@nomanzafarzafar7912
@nomanzafarzafar7912 3 жыл бұрын
Great work sir. Keep it up.
@kushalsharma8635
@kushalsharma8635 3 жыл бұрын
Yeh sure. (from Stevdza-San)
@nafiliumgeneration533
@nafiliumgeneration533 4 жыл бұрын
Nice tutoriall
@kushalsharma8635
@kushalsharma8635 3 жыл бұрын
thank you . (from Stevdza-San)
@HarveySpecterYT
@HarveySpecterYT 2 жыл бұрын
Thanx a lot.
@josephcobbinah5412
@josephcobbinah5412 3 жыл бұрын
Just out of curiosity, is it standard practice to make the NavDrawer act as a switch between fragments such that the hamburger icon shows regardless of the current fragment? Any help is greatly welcome. Thanks
@StevdzaSan
@StevdzaSan 3 жыл бұрын
Yeah that's true.
@sodiqjonrasulov4231
@sodiqjonrasulov4231 3 жыл бұрын
thank youuuuuuu
@akshayshelkeengg
@akshayshelkeengg 4 жыл бұрын
Thank you very much.
@kushalsharma8635
@kushalsharma8635 3 жыл бұрын
Your welcome . (from Stevdza-San)
@pratyushsharma8652
@pratyushsharma8652 2 жыл бұрын
Use this - navHostFragment = supportFragmentManager.findFragmentById(R.id.nav_host_fragment) as NavHostFragment navController = navHostFragment.navController
@arjunvarma9350
@arjunvarma9350 2 жыл бұрын
It’s saying unresolved reference : navigationView
@lasanbajrasandi8434
@lasanbajrasandi8434 2 жыл бұрын
thankyou !!!!
@bhagwatgirija4445
@bhagwatgirija4445 3 жыл бұрын
Best vedio sir
@aniketk11
@aniketk11 4 жыл бұрын
Sir can i do that by using only one fragment and show the data related to the menu item clicked
@kushalsharma8635
@kushalsharma8635 3 жыл бұрын
Yeah sure you can do that!
@moataz2415
@moataz2415 3 жыл бұрын
I failed to do that by java I am stack in the beginning any one help
@tejendraraom3074
@tejendraraom3074 4 жыл бұрын
please make a video on recycler view filter
@kushalsharma8635
@kushalsharma8635 3 жыл бұрын
It is now in his channel, check it out
@yassinelegougui4044
@yassinelegougui4044 4 жыл бұрын
Thanks a lot i have a Q i can't use this method (findNavcontroller) ! exactly like in this line "navController= findNavController(R.id.fragment)" this method doesn't show for me on android studio any help plz
@StevdzaSan
@StevdzaSan 4 жыл бұрын
Add dependency for Navigation Component. Or call Navigation.findNavController
@yassinelegougui4044
@yassinelegougui4044 4 жыл бұрын
Thnks for answering me I all ready add those dependancy to my project but when i try to call it (initialize my navcontroller )doesn't show also this method setupWithNavController any help plz
@yassinelegougui4044
@yassinelegougui4044 4 жыл бұрын
@@StevdzaSan thnks the prob was gone ^^
@FIsabettini
@FIsabettini 3 жыл бұрын
from: developer.android.com/guide/navigation/navigation-getting-started val navHostFragment = supportFragmentManager.findFragmentById(R.id.fragment) as NavHostFragment navController = navHostFragment.navController It worked for me. Before only crashes.
@angelmauriciorivas6160
@angelmauriciorivas6160 2 жыл бұрын
@@FIsabettini at last I found something that it works, than you so much
@Krystiano353
@Krystiano353 2 жыл бұрын
doesn't work lol
@rajsingharia9561
@rajsingharia9561 3 жыл бұрын
Layout gravity is not available
@jayrathod1661
@jayrathod1661 3 жыл бұрын
ik im late, but just try typing it fully inside the view and the error will be gone
@laleyuniversal
@laleyuniversal 3 жыл бұрын
How can I add animations? Thanks 🥺🥺
@kushalsharma8635
@kushalsharma8635 3 жыл бұрын
watch his previous video
@MrAvelino2010
@MrAvelino2010 3 жыл бұрын
How to impelment using java
@kushalsharma8635
@kushalsharma8635 3 жыл бұрын
Convert it!
@MegaRockandroll09
@MegaRockandroll09 2 жыл бұрын
Everything is different on Java
@rameshramesh-bd2wu
@rameshramesh-bd2wu 4 жыл бұрын
Can you please make a tutorial for beginners ?
@kushalsharma8635
@kushalsharma8635 3 жыл бұрын
sure, you can watch his playlist
@kushalsharma8635
@kushalsharma8635 3 жыл бұрын
Is anyone here with an experience of more than a year in android development?
@amanuel2135
@amanuel2135 4 жыл бұрын
Putting source code would be good maybe a github link to this code.
@kushalsharma8635
@kushalsharma8635 3 жыл бұрын
This makes people lazy!
@abada-s
@abada-s 3 жыл бұрын
very helpful but you was to fast in this video
@serdarbilgili88
@serdarbilgili88 4 жыл бұрын
Is there a chance to explain them with Java
@StevdzaSan
@StevdzaSan 4 жыл бұрын
You can copy Kotlin code and paste it in Java class, Android Studio will automatically convert it for you. It's not a full-proof method, but still works really well.
@serdarbilgili88
@serdarbilgili88 4 жыл бұрын
@@StevdzaSan thank u
Navigation Component - Android Studio Tutorial
12:11
Stevdza-San
Рет қаралды 174 М.
Will A Guitar Boat Hold My Weight?
00:20
MrBeast
Рет қаралды 200 МЛН
Magic or …? 😱 reveal video on profile 🫢
00:14
Andrey Grechka
Рет қаралды 88 МЛН
Navigation Component | Android Jetpack | Android
17:26
Mafia Codes
Рет қаралды 49 М.
SLIDABLE MENU WITH NAVIGATION DRAWER - Android Fundamentals
15:00
Philipp Lackner
Рет қаралды 95 М.
Navigation Drawer - UX With Material3
13:10
Philipp Lackner
Рет қаралды 23 М.
Navigation Component in Android Studio using Kotlin | Android Knowledge
21:19
Notes App With Firebase | Android | 2024
1:36:01
Easy Tuto
Рет қаралды 52 М.
Building a Mobile App in 2024: The BEST Technologies
13:31
Dan Ilies
Рет қаралды 37 М.