Up next

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

8 Views· 14 Aug 2019
ITCOURSES
ITCOURSES
5 subscribers
0

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.

Like my Facebook page : https://www.facebook.com/codeglympse
Subscribe My YouTube channel : http://www.youtube.com/ticoontechnologies

Show more
100% online learning from the world's best universities, organisations and Instructors

 0 Comments sort   Sort By


Up next