android - Make navigation drawer close for the first time run -


i have app navigation drawer. works good, navigation drawer opens automatically app starts.

i not want see navigation drawer unless swipe of click menu button.

thanks in advance!

when launch navigation drawer activity. make sure has been opened.

drawerlayout mdrawerlayout = (drawerlayout) findviewbyid(r.id.drawer_layout); ...  if(mdrawerlayout.isdraweropen(gravitycompat.start)) {   //drawer open  }  

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -