void moveDrawerToOffset(View drawerView, float slideOffset) {
        final float oldOffset = getDrawerViewOffset(drawerView);
        final int width = drawerView.getWidth();
        final int oldPos = (int) (width * oldOffset);
        final int newPos = (int) (width * slideOffset);
        final int dx = newPos - oldPos;

        drawerView.offsetLeftAndRight(
                checkDrawerViewAbsoluteGravity(drawerView, Gravity.TOP) ? dx : -dx);
        setDrawerViewOffset(drawerView, slideOffset);
    }
@return the absolute gravity of the child drawerView, resolved according
to the current layout direction
app/src/main/java/com/sunnyweather/android/ui/customerUIs/HomeDrawerLayout.java