Navigation drawer is most common thing you find in android application. But now most of app using tab with navigation drawer to provide user best interface and make app more simple to use by providing more feature on single screen. In my last post i explain you how to create a navigation drawer in android, and in this post i explain how to implement navigation drawer with tab view.

Navigation Drawer with TabView in Android

Step 1. Create new project in Android Studio / Eclipse.

Step 2. We need to add appcompat-v7 library to make thing work. In android studio open build.gradle and add dependency as shown below.

Step 3.  Now open your style.xml file inside folder res ⇒ values ⇒ styles.xml. Here we define material design arrow for navigation.

Step 4. Now create two XML file one is for view pager (main_layout.xml) and second (drawer_list_item.xml) for menu list in navigation drawer.

Step 5. Open your activity_main.xml and add following code

Now add this code in your MainActivity.java 

Creating adapter class for tabs {TabsPagerAdapter.java}

then creating a new class DrawerListAdapter.java to inflate navigation drawer menu with ImageView and TextView.

creating array list class { NavItem.java } 

creating layout drawer_item.xml which is use to create menu for navigation drawer.

Download the sample hope this help in you project.