public void closeDrawer(@EdgeGravity int gravity, boolean animate) {
        final View drawerView = findDrawerWithGravity(gravity);
        if (drawerView == null) {
            throw new IllegalArgumentException("No drawer view found with gravity "
                    + gravityToString(gravity));
        }
        closeDrawer(drawerView, animate);
    }
Close the specified drawer.

@param gravity Gravity.TOP to move the left drawer or Gravity.BOTTOM for the right.
               GravityCompat.START or GravityCompat.END may also be used.
@param animate Whether closing of the drawer should be animated.
app/src/main/java/com/sunnyweather/android/ui/customerUIs/HomeDrawerLayout.java