Without the DrawerLayout extension, you can use a combination of DrawerListener and the Boolean flag for the Home button.
Deploy DrawerListener using the onDrawerSlide method. Inside this method, you can check the "Main button" flag, and if it is false and the box is shifted, you know that this action is through a slide.
Bit mess.
In addition, override the DrawerLayout and override the onTouchEvent and catch move events.
source share