0

I've designed this android app. Now that it's in it's final stage , I'm thinking of adding a Navigation Drawer. And I intend to add it to every activity. Is that possible somehow ? If yes , please direct me to some tutorial or something.

  • It depends on that, you might have created your whole application in Activity. But navigation drawer works with fragments. So you might have to do many changes, because Activity and Fragment have different life cycles. – Chitrang Feb 06 '15 at 04:31
  • here very simple impl. of navigation drawer in the app https://github.com/balduzzi85/it.balduzzi.customnavigationdrawer – DevOps85 Feb 06 '15 at 10:54

1 Answers1

0

yes you can add but you have to do some modifications such as OnDrawerclosed and OnDrawerOpened events.

You can follow the following links-

first

second

RajSharma
  • 1,941
  • 3
  • 21
  • 34
  • Yeah I've visited those links before bro. But I didn't quite get the concept. I'm kinda a newbie to Android development. See, my app has different screens like News, Events, Home etc. Now what I want to do is change the main content of the DrawerLayout according to which item in the ListView I've selected. I'm modifying the Sample Code I got on developer.google.com [ hope that doesn't get me into trouble ;) ]. Can you suggest a few tweaks in that code after taking a look at it ? – theDarkPrince Feb 06 '15 at 05:26
  • If you wanna take a look @ the code here's the link to my repository. Any help is appreciated. – theDarkPrince Feb 06 '15 at 06:10