

The ActionBarDrawerToggle also displays the drawer indicator in the app bar which presents the drawer when tapped.

An ActionBarDrawerToggle instance to connect and synchronize the navigation drawer to the app bar.A listener assigned to the NavigationView to detect when an item has been selected by the user.An optional layout resource file containing the content to appear in the header section of the navigation drawer.A menu resource file containing the options to be displayed within the navigation drawer.An instance of the NavigationView component embedded as a child of the DrawerLayout.An instance of the DrawerLayout component.Figure 47-1, for example, shows the navigation drawer built into the Google Play app:Ī navigation drawer is made up of the following components: The navigation drawer is a panel that slides out from the left of the screen and contains a range of options available for selection by the user, typically intended to facilitate navigation to some other part of the application.
