code: public void setShiftOrientation(OrientedLayout.Orientation orientation) {
          if (mShiftLayout.getOrientation() != orientation &&
                  orientation != OrientedLayout.Orientation.STACK) {
              mShiftLayout.setOrientation(orientation);
              requestLayout();
          }
      }
docs: Sets page shift orientation. The pages might be shifted horizontally or vertically relative
  to each other to make the content of each page on the screen at least partially visible
  @param orientation