Ejemplo n.º 1
0
        /**
         * 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");
        }
Ejemplo n.º 2
0
 public OrientationHelper(FlexibleView.LayoutManager layoutManager)
 {
     mLayoutManager = layoutManager;
 }
Ejemplo n.º 3
0
 public VerticalHelper(FlexibleView.LayoutManager layoutManager) : base(layoutManager)
 {
 }
Ejemplo n.º 4
0
 public HorizontalHelper(FlexibleView.LayoutManager layoutManager) : base(layoutManager)
 {
 }
Ejemplo n.º 5
0
 /**
  * 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));
 }