0

Seen as now the DrawerLayout is included in the support libraries, I have been looking for a tutorial or guide for migrating from SimonVT MenuDrawer to the official DrawerLayout.

I have only found questions like this: Navigation drawer (menudrawer) Android 5 (lollipop) style

The problem I see is that implementing DrawerLayout implies changing/reorganizing ALL of my layouts xml.

I'd like some guidance about the best way to proceed.

Thanks

References:

SimonVT/android-menudrawer

Creating a Navigation Drawer

Community
  • 1
  • 1
pedroren
  • 5
  • 3
  • Why does implementing DrawLayout imply changing all of your XML? – Ben Pearson Nov 07 '14 at 15:33
  • The way I implemented menudrawer , I just programmatically include my pure layouts as part of the content of a MenuDrawer object. Can I do the same thing with Drawerlayout? – pedroren Nov 07 '14 at 15:41
  • Typically with a DrawerLayout you would specify a single layout with a Drawer. When you switch content, you just swap out a part of the layout with a new Fragment, so yes, you would have to update all of your layouts. – Ben Pearson Nov 07 '14 at 15:51
  • I see. I'll begin to work on it. Thanks. – pedroren Nov 09 '14 at 02:35

1 Answers1

0

The unfortunate truth is that you'll have to update all of your layout files.

The typical (recommended) setup for the navigation drawer is to define a single layout file and swap out the content (current content fragment) with another one.

Ben Pearson
  • 7,532
  • 4
  • 30
  • 50