code: public final void setOrientation(int orientation) {
          mOrientation = orientation;
          mOrientationState = getOrientationStateFromParam(mOrientation);
          invalidate();
          if (mOuterAdapter != null) {
              mOuterAdapter.setOrientation(mOrientation);
          }
  
      }
docs: Sets orientation of loopbar
  
  @param orientation int value of orientation. Must be one of {@link Orientation}