private Drawable resolveRightShadow() {
        int layoutDirection = ViewCompat.getLayoutDirection(this);
        if (layoutDirection == ViewCompat.LAYOUT_DIRECTION_LTR) {
            if (mShadowEnd != null) {
                // Correct drawable layout direction, if needed.
                mirror(mShadowEnd, layoutDirection);
                return mShadowEnd;
            }
        } else {
            if (mShadowStart != null) {
                // Correct drawable layout direction, if needed.
                mirror(mShadowStart, layoutDirection);
                return mShadowStart;
            }
        }
        return mShadowBottom;
    }
Simple gravity to string - only supports LEFT and RIGHT for debugging output.

@param gravity Absolute gravity value
@return LEFT or RIGHT as appropriate, or a hex string
app/src/main/java/com/sunnyweather/android/ui/customerUIs/HomeDrawerLayout.java