Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disabling right drawer only on specific fragment

I have Activity with DrawerLayout (which contains left and right drawer). I was wondering if I could disable right drawer from specific fragments.

I've read about mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED), but it would lock whole drawer closed, and I still need the left drawer

like image 386
Jacek Kwiecień Avatar asked Apr 04 '14 09:04

Jacek Kwiecień


1 Answers

DrawerLayout.setDrawerLockMode(int lockMode) locks all the drawers, but to lock a specific drawer you can use one of the following:

  • DrawerLayout.setDrawerLockMode(int lockMode, int edgeGravity)
  • DrawerLayout.setDrawerLockMode(int lockMode, View drawerView)
like image 191
adneal Avatar answered Sep 22 '22 17:09

adneal