Skip to content

Instantly share code, notes, and snippets.

View ashadnasim52's full-sized avatar
🖥️
I write CODE

ashad ashadnasim52

🖥️
I write CODE
  • Charzera Tech
  • India
View GitHub Profile
@ashadnasim52
ashadnasim52 / AppBaseActivity.java
Created May 14, 2018 17:22
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.