Skip to content

Instantly share code, notes, and snippets.

I write CODE

ashad nasim ashadnasim52

I write CODE
View GitHub Profile
ashadnasim52 /
Created May 14, 2018
Android: Easiest way to reuse a common Navigation drawer among a group of activities.
* This is a simple and easy approach to reuse the same
* navigation drawer on your other activities. Just create
* a base layout that conains a DrawerLayout, the
* navigation drawer and a FrameLayout to hold your
* content view. All you have to do is to extend your
* activities from this class to set that navigation
* drawer. Happy hacking :)
* P.S: You don't need to declare this Activity in the
* AndroidManifest.xml. This is just a base class.