Navigation Component with Navigation Drawer

In this tutorial you will learn the following.

  1. Navigation Component with navigation drawer.
  2. How to add custom navigation drawer fragment.
  3. How to listen to clicked navigation drawer menu item.
  4. Open new activity when navigation drawer menu item is clicked.

Steps to creating navigation component with navigation drawer.

  1. create new project => New => Project => Navigation Drawer Activity => Name => Finish.
  2. Add menu item ( custom which when clicked will open new fragment )
  3. Listen to menu item click.
  4. Add another menu item activity which when clicked will open new activity.

Check out the source code from my github account.