Looks like I found a mistake. For example, if installed:
android:layout_gravity="right"
or
android:layout_gravity="left"
for the contents of the box and using .setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED) everything will be fine.
But if android:layout_gravity="left|center_vertical" or something like this LOCK_MODE_LOCKED_CLOSED will not work.
ViT-Vetal- Dec 15 '17 at 11:21 2017-12-15 11:21
source share