Hello!
The problem: there is MainActivity.xml, which contains the container for the fragments and DrawerLayout. Different fragments are loaded into the container for fragments, some of them need NavigationDrawer, and some are not needed, but with such markup on any fragment you can open the side menu with the left swipe, how to mark up correctly in this case? Make another container in which to load fragments for which you do not need NavigationDrawer?

NavigationDraweryou can callsetDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED)and the icon inINVISIBLE- ermak0ff