docs: public static boolean isLayoutRtl(View view) {
          if (Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN_MR1) {
              return view.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL;
          } else {
              // All layouts are LTR before JB MR1.
              return false;
          }
      }