Package 

Class FlexboxLayoutManager.LayoutParams

  • All Implemented Interfaces:
    android.os.Parcelable , com.pointrlabs.core.util.flexbox.FlexItem

    
    public class FlexboxLayoutManager.LayoutParams
    extends RecyclerView.LayoutParams implements FlexItem
                        

    LayoutParams used by the FlexboxLayoutManager, which stores per-child information required for the Flexbox. Note that some parent fields (which are not primitive nor a class implements Parcelable) are not included as the stored/restored fields after this class is serialized/de-serialized as an Parcelable.

    • Constructor Detail

      • FlexboxLayoutManager.LayoutParams

        FlexboxLayoutManager.LayoutParams(Context c, AttributeSet attrs)
      • FlexboxLayoutManager.LayoutParams

        FlexboxLayoutManager.LayoutParams(int width, int height)
      • FlexboxLayoutManager.LayoutParams

        FlexboxLayoutManager.LayoutParams(RecyclerView.LayoutParams source)
    • Method Detail

      • setWidth

         void setWidth(int width)

        Sets the width attribute of the flex item.

        Parameters:
        width - the width attribute.
      • setHeight

         void setHeight(int height)

        Sets the height attribute of the flex item.

        Parameters:
        height - the height attribute.
      • setFlexGrow

         void setFlexGrow(float flexGrow)

        Sets the flex grow attribute to the flex item

        Parameters:
        flexGrow - the flex grow attribute
      • setFlexShrink

         void setFlexShrink(float flexShrink)

        Sets the flex shrink attribute to the flex item

        Parameters:
        flexShrink - the flex shrink attribute
      • setAlignSelf

         void setAlignSelf(int alignSelf)

        Sets the align self attribute to the flex item

        Parameters:
        alignSelf - the order attribute
      • setMinWidth

         void setMinWidth(int minWidth)

        Sets the minimum width attribute to the flex item

        Parameters:
        minWidth - the order attribute
      • setMinHeight

         void setMinHeight(int minHeight)

        Sets the minimum height attribute to the flex item

        Parameters:
        minHeight - the order attribute
      • setMaxWidth

         void setMaxWidth(int maxWidth)

        Sets the maximum width attribute to the flex item

        Parameters:
        maxWidth - the order attribute
      • setMaxHeight

         void setMaxHeight(int maxHeight)

        Sets the maximum height attribute to the flex item

        Parameters:
        maxHeight - the order attribute
      • setWrapBefore

         void setWrapBefore(boolean wrapBefore)

        Sets the wrapBefore attribute to the flex item

        Parameters:
        wrapBefore - the order attribute
      • setFlexBasisPercent

         void setFlexBasisPercent(float flexBasisPercent)

        Sets the flex basis percent attribute to the flex item

        Parameters:
        flexBasisPercent - the order attribute
      • setOrder

         void setOrder(int order)

        Sets the order attribute to the flex item

        Parameters:
        order - the order attribute