# Creating A Material Design Navigation Drawer

DevFeed: [Creating A Material Design Navigation Drawer](<https://devfeed.tech/articles/creating-a-material-design-navigation-drawer-22799.md>)

Original publisher: [Read original article](<http://androidessence.com/creating-a-material-design-navigation-drawer/>)

Author: Adam McNeilly

Published: 2015-10-11T00:00:00Z

Content type: tutorial

Language: en

Sources: [Android Essence](<https://devfeed.tech/sources/android-essence.md>)

Topics: [Material Design for Bootstrap](<https://devfeed.tech/topics/material-design-for-bootstrap.md>), [navigation](<https://devfeed.tech/topics/navigation.md>), [Code](<https://devfeed.tech/topics/code.md>), [XML](<https://devfeed.tech/topics/xml.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [interface](<https://devfeed.tech/tags/interface.md>), [layout](<https://devfeed.tech/tags/layout.md>), [material-design](<https://devfeed.tech/tags/material-design.md>), [navigation](<https://devfeed.tech/tags/navigation.md>), [specifications](<https://devfeed.tech/tags/specifications.md>)

## AI overview

This tutorial explains how to create a Material Design navigation drawer using NavigationView inside a DrawerLayout. It covers the headerLayout and menu attributes, menu handling, implementing OnNavigationItemSelectedListener, and accessing header elements from the activity.

## Source excerpt

The XML The first thing that's changed is that we no longer need a fragment object to build our Navigation Drawer in the XML. We can use a NavigationView, which according to docs: Represents a standard navigation menu for application. The menu contents can be populated by a menu resource file. The NavigationView should still belong inside a DrawerLayout, as we did previously. There are two attributes that may be new to you: headerLayout and menu.