code: public void closeDrawer() {
          if (drawerLayout != null) {
              if (drawerGravity != 0) {
                  drawerLayout.closeDrawer(drawerGravity);
              } else {
                  drawerLayout.closeDrawer(sliderLayout);
              }
          }
      }
docs: close the drawer