Posts

Showing posts with the label navigation-drawer

Android: NavigationDrawer/multiple activities/same menu

Image
Clash Royale CLAN TAG #URR8PPP Android: NavigationDrawer/multiple activities/same menu What I am trying to do, is have a NavigationDrawer menu like this: NavigationDrawer I've figured out how to change layouts when menu items are clicked, but how do I load a new activity without losing the menu? My main question: For example let's say one of my menu options takes you to a layout where there are some buttons that do something. I need to load an accompanying activity/class, that will handle the actions and functionality of that specific "page" in the App. If another menu option takes you to a layout with only an image, for example, that would be another activity without all that code that handles the functionality of the buttons, since there are no buttons in this screen. I hope that makes sense! I followed many tutorials/videos online using several methods (Fragments etc.) but nothing quite answered my question. By the way, what I am doing n...