• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Android Navigation Drawer Question

ShatterStar

Newbie
Hi,

I have began creating an android app with the "Blank Activity" template, I have created 3 different activities with 3 different views essentially. Reading up on the navigation drawer in order to have it you need to have two views within a drawer layout root element. My question is if I want to have the navigation drawer appear throughout my application do I need to have all my views within a drawer root element?
 
Is there some reason you didn't use the "Navigation Drawer" project template rather than "Blank Activity" template? The former gives you the basic code and layout resources needed to use a navigation drawer, and extend it.
 
Is there some reason you didn't use the "Navigation Drawer" project template rather than "Blank Activity" template? The former gives you the basic code and layout resources needed to use a navigation drawer, and extend it.

Yes there is I am learning android programming from scratch so I started with a blank activity template. Now that the app is expanding I need to add new functionality like a navigation drawer on every activity.

I could copy the code from across all the activities but this seems like overkill and it would be expensive on the system, is there an easier way?
 
Back
Top Bottom