Changes

Implementing an Android Navigation Drawer

153 bytes added, 18:07, 30 December 2015
no edit summary
[[Image:android_studio_navigation_drawer_example_1.4.png]]
Figure 35-1
* A listener assigned to the NavigationView to detect when an item has been selected by the user.
* An ActionBarDrawerToggle instance to connect and synchronize the navigation drawer to the app bar. The ActionBarDrawerToggle also displays the drawer indicator in the app bar which presents the drawer when tapped.
 
The following XML listing shows an example navigation drawer implementation which also contains an include directive for a second layout file containing the standard app bar layout.
[[Image:android_studio_nav_drawer_template_1.4.png]]
Figure 35-2
[[Image:android_nav_drawer_indicator.png]]
Figure 35-3
[[Image:android_nav_drawer_running.png]]
Figure 35-4