Navigation Drawer with Navigation Component - Android Studio Tutorial

preview_player
Показать описание
🏆 My Online Courses
⭐Discount Coupon: LAUNCH-STEVDZA-SAN

🐱‍👤 Wanna become a member? Join!

📸 Instagram

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.

Рекомендации по теме
Комментарии
Автор

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

nitinmehta
Автор

Q: I don't want back button. So, should i remove connections in nav_graph.xml file?

Nice video 😃

lbars
Автор

Sir u made it so simple and so easy ... Thanks Alot 😍

ARMY_Love_
Автор

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

ethiomusic
Автор

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?

athisii_ekhe
Автор

All your tutorials are useful for who are already familiar with Android development but beginners like me it was very hard to catch-up.

rameshramesh-bdwu
Автор

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

deepeshkumar
Автор

No access to onSupportNavigateUp() from fragment, can you help me with it ?

Sk-gbhx
Автор

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.

Lenduya
Автор

how to disable item when it's selected i couldn't find any reference in docs
please help

zmemes
Автор

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

josephcobbinah
Автор

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 )

samirshrestha
Автор

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

sedrekblak
Автор

Great series! Very helpful to see how all the pieces go together. Thank you!

lucye
Автор

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 :)

soract
Автор

I like your videos! They all have good content, but I am a java developer and Kotlin makes it more dificult to understand.

gabrielgil
Автор

Use this -
navHostFragment = as NavHostFragment
navController = navHostFragment.navController

pratyushsharma
Автор

Sir can i do that by using only one fragment and show the data related to the menu item clicked

aniketk
Автор

Thanks a lot i have a Q i can't use this method (findNavcontroller) ! exactly like in this line "navController= this method doesn't show for me on android studio any help plz

yassinelegougui
Автор

Is anyone here with an experience of more than a year in android development?

kushalsharma
visit shbcf.ru