Custom Android Navigation Drawer

Here ,I will show you how to create a custom Navigation Drawer using the auto generated Android Studio Navigation Drawer template. Using the auto generated Android Studio Navigation Drawer gives you are great head start for most of the use cases of Navigation Drawer; however it can also leave you in the middle of nowhere if you want to apply some customization. Here is what our demo app will look like when completed.




Adding Navigation Drawer

Create a new Android project using Android Studio, Select the new project template, select Phone and Tablet as your target devices and choose any API level 16.  Click next and select Activity with Navigation like the image below and click next.
custom-android-navigation-drawer logicchip 1
ject, I have added the following Fragments. No functionality is actually implemented in these fragments, they are used as demo fragment to demonstrate Navigation Drawer

  1. FragmentA
  2. FragmentB
  3. FragmentC
  4. FragmentD




Screen shots

custom-android-navigation-drawer logicchip 2

MainActivity

activity_main

As you can see below we commented the NavigationView and replaced it with Our LinearLayout.

button_click

button_clickb

 

You can download full code from here, You can modify the code us u like. In like manner feel free to comment your doubt’s below. Does our tutorials help you then help as spread the word, like and share.

Leave a Reply

%d bloggers like this: