How do I add Navigation Drawer in already existing app which contain activities? I don't want to use the fragment approach.
Is there a sample code for it?
The drawer is supposted to work with fragments. You need to convert your activities to fragments, which is not a very hard task.
According to current Android navigation design patterns, you would not use this method in your application. ( Technically possible of course ). Use Back button on Toolbar and use navigation in only your main activity. You must use fragments otherwise.
@Natts check this one
@BerayBentesen Thanks . I was able to get the drawer layout working on my home activity.
Now, On clicking a menu item in the navigation View , I navigate to a new activity. I want this new activity also to implement drawer layout and the support toolbar. How should i go about ? Thanks again
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies