How to use the same Drawer Navigation menu in various Activities without repeating code?

-1

How to use the same drawer Navigation menu on several activitys without repeating code?

    
asked by anonymous 02.07.2018 / 18:00

2 answers

1

You can use an Activity only, and inject fragments into the container, so you would only have one menu (but I do not recommend it, but it's up to you)

    
03.07.2018 / 01:37
0

Put all the code to initialize the drawer inside an activity (DrawerNavigatableActivity extends Activity) and do all your activities that need this behavior to inherit from it.

    
02.07.2018 / 22:38