How can I use button to show/hide Navigation Drawer, I have used this SO link to create and manage Navigation Drawer.
Now i am using (Swipe to right from left - to show)
Grab a reference to the DrawerLayout
and call closeDrawer(int) to close it and openDrawer(int) to open it. The int
parameter refers to the gravity. In your case it should be GravityCompat.LEFT
/ GravityCompat.START
, because accordingly to the screenshot you posted, your DrawerLayout
open and close on the left.