Disabling the right box only on a specific fragment

I have an Activity with DrawerLayout (which contains left and right boxes). I was wondering if I can disconnect the right box from certain fragments.

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

+6
source share
1 answer

DrawerLayout.setDrawerLockMode(int lockMode) locks all mailboxes, but you can use one of the following values ​​to lock a specific mailbox:

+10
source

All Articles