private static boolean hasOpaqueBackground(View v) {
        final Drawable bg = v.getBackground();
        if (bg != null) {
            return bg.getOpacity() == PixelFormat.OPAQUE;
        }
        return false;
    }
Change the layout direction of the given drawable.
Return true if auto-mirror is supported and drawable's layout direction can be changed.
Otherwise, return false.
app/src/main/java/com/sunnyweather/android/ui/customerUIs/HomeDrawerLayout.java