public boolean isDrawerVisible(@NonNull View drawer) {
        if (!isDrawerView(drawer)) {
            throw new IllegalArgumentException("View " + drawer + " is not a drawer");
        }
        return ((LayoutParams) drawer.getLayoutParams()).onScreen > 0;
    }
Check if a given drawer view is currently visible on-screen. The drawer
may be only peeking onto the screen, fully extended, or anywhere inbetween.

@param drawer Drawer view to check
@return true if the given drawer is visible on-screen
@see #isDrawerOpen(android.view.View)
app/src/main/java/com/sunnyweather/android/ui/customerUIs/HomeDrawerLayout.java