/** * Creates an OrientationHelper for the given LayoutManager and orientation. * * @param layoutManager LayoutManager to attach to * @param orientation Desired orientation. Should be {@link #HORIZONTAL} or {@link #VERTICAL} * @return A new OrientationHelper */ public static OrientationHelper CreateOrientationHelper( FlexibleView.LayoutManager layoutManager, int orientation) { if (orientation == HORIZONTAL) { return(CreateHorizontalHelper(layoutManager)); } else if (orientation == VERTICAL) { return(CreateVerticalHelper(layoutManager)); } throw new ArgumentException("invalid orientation"); }
public OrientationHelper(FlexibleView.LayoutManager layoutManager) { mLayoutManager = layoutManager; }
public VerticalHelper(FlexibleView.LayoutManager layoutManager) : base(layoutManager) { }
public HorizontalHelper(FlexibleView.LayoutManager layoutManager) : base(layoutManager) { }
/** * Creates a vertical OrientationHelper for the given LayoutManager. * * @param layoutManager The LayoutManager to attach to. * @return A new OrientationHelper */ public static OrientationHelper CreateVerticalHelper(FlexibleView.LayoutManager layoutManager) { return(new VerticalHelper(layoutManager)); }