6

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

adneal
  • 30,484
  • 10
  • 122
  • 151
Jacek KwiecieĊ„
  • 12,397
  • 20
  • 85
  • 157

1 Answers1

10

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

General Grievance
  • 4,555
  • 31
  • 31
  • 45
adneal
  • 30,484
  • 10
  • 122
  • 151