View findDrawerWithGravity(int gravity) {
        final int absHorizGravity = GravityCompat.getAbsoluteGravity(
                gravity, ViewCompat.getLayoutDirection(this)) & Gravity.VERTICAL_GRAVITY_MASK;
        final int childCount = getChildCount();
        for (int i = 0; i < childCount; i++) {
            final View child = getChildAt(i);
            final int childAbsGravity = getDrawerViewAbsoluteGravity(child);
            if ((childAbsGravity & Gravity.VERTICAL_GRAVITY_MASK) == absHorizGravity) {
                return child;
            }
        }
        return null;
    }
@param gravity the gravity of the child to return. If specified as a
               relative value, it will be resolved according to the current
               layout direction.
@return the drawer with the specified gravity
app/src/main/java/com/sunnyweather/android/ui/customerUIs/HomeDrawerLayout.java