public static OrientationHelperEx createOrientationHelper ( ExposeLinearLayoutManagerEx layoutManager , int orientation ) { switch ( orientation ) { case HORIZONTAL : return createHorizontalHelper ( layoutManager ) ; case VERTICAL : return createVerticalHelper ( layoutManager ) ; } throw new IllegalArgumentException ( "invalid orientation" ) ; }
Creates an OrientationHelper for the given LayoutManager and orientation .