Android tutorial (2018) - 54- Create a Navigation Drawer

preview_player
Показать описание
Navigation Drawer in an android widget that display your app's main navigation menus. For adding a Navigation Drawer to a layout you have to add two widgets

1. DrawerLayout
2. NavigationView

DrawerLayout must be the root element of your layout. The DrawerLayout needs two child views. First child view represent the main container of your layout and the second child represent the contents of the drawer. You can specify the content of the drawer by using the NavigationView. The NavigationView must specify a horizontal gravity attribute and that determines the drawer appear from left or right side of your layout.

If you want the drawer to appear from left side you have to specify the gravity as start or left otherwise specify gravity as right.

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

you have a very good straight direction than other tutorials i've seen. keep it up

mav
Автор

Perfect video tutorial for create Navigation Drawer.

riyoinfosys
Автор

great job with the tutorial man. respect

cristianreyes
Автор

I have a question: why did not you use the Navigation Drawer Activity template that comes with the Android Studio to begin with?

annetak
Автор

Watching this in 2020 and seeing corona simulator on the desktop xD

emnichtda
Автор

Hello Prabheesh, I am a big follower of ur videos..
Why dont you start making videos on flutter, as you teach android from scractch

tecky_world
Автор

How to create dashboard + navigation drawer in android studio?

Manikandan-qcei
Автор

Hey Prabeesh, are you going to learn Kotlin?

codinginflow
Автор

i got error setSupportActionBar(toolbar);

Dodotheuser
Автор

Sir, you are great😊😊😊...
Sir plz make Video series on Uber clone app..There are many interesting android concepts included in that...

rajmandal
Автор

@PRABEESRK there's error on the toolbar_layout and it's not working.

mprof
Автор

How to add navigation drawer over tabs (your previous video | on the same project)?

CristianAlexandruRadu
Автор

A.o.A sir make a tutorial about select images from gallery and make video, Thanks

nature_-
Автор

Sir dayli Bonus ka ek video banaye na jisme user ko har 24 Hrs ke baad usko application login karne ke baad reword milega kuch amount of points ka please ye topic pr ek video bana do.

studytips
Автор

Where's the menu button in the drawer?

Ari-
Автор

How to create Myntra type Navigation Drawer which gives you facility to navigate by category to category in same navigation drawer . Category>subcategory>item.

ashutoshkumar
Автор

Hi sir,
Good evening,
We also have Navigation Drawer Activity in Android studio, but you taken empty activity and adding Navigation view programmatically, what is the difference between by taking empty activity and drawer activity???
I have a.doubt, please clarify....
The thanks in advance

vinaykumarnagarjuna
Автор

hello,
i just want to know if you have some videos on extending navigation drawer to other activities i really need it
tell me the procedure or give me some code so i can solve my problem

alikazmi
Автор

Hello Sir, Thanks for amazing contents & tutorials.
can u please provide a tutorial about how to insert data into database?
Here's the full idea :
Create a PHP MYSQL Server-side, to inseet data into MYSQL, then use a button or a function in android to get and save data into sqlite and also, this only happen when client is online and don't interupt app from running and showing contents without internet.
there's not any tutorial about how to get data and store it.

educationey
Автор

got error in app gradle while adding this line implementation

infotainment