I searched many sites (stackoverflow as well) but couldn't understand how to implement the navigation drawer without the action bar. I know that this question has already been asked here but it doesn't have a proper explanation and code. I am a beginner in android development so can anyone please explain me with code How to make a navigation drawer without an action bar
Thanks in advance!
There is no relation between navigation drawer and action bar. Try this code, it will help you:
Java code is here:
Starting from the Sample Android NavigationDrawer app:
Create a button and in the clickListener call:
drawer.openDrawer(Gravity.LEFT);
Just add your
DrawerLayout
like @mohan did, then if you have a button or something you tap on and want to open the drawer, just do like this :and to close :