-
- 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.
-
-
Field Summary
Fields Modifier and Type Field Description public final static Parcelable.Creator<FlexboxLayoutManager.LayoutParams>
CREATOR
-
Constructor Summary
Constructors Constructor Description FlexboxLayoutManager.LayoutParams(Context c, AttributeSet attrs)
FlexboxLayoutManager.LayoutParams(int width, int height)
FlexboxLayoutManager.LayoutParams(ViewGroup.MarginLayoutParams source)
FlexboxLayoutManager.LayoutParams(ViewGroup.LayoutParams source)
FlexboxLayoutManager.LayoutParams(RecyclerView.LayoutParams source)
FlexboxLayoutManager.LayoutParams(FlexboxLayoutManager.LayoutParams source)
-
Method Summary
Modifier and Type Method Description int
getWidth()
void
setWidth(int width)
Sets the width attribute of the flex item. int
getHeight()
void
setHeight(int height)
Sets the height attribute of the flex item. float
getFlexGrow()
void
setFlexGrow(float flexGrow)
Sets the flex grow attribute to the flex item float
getFlexShrink()
void
setFlexShrink(float flexShrink)
Sets the flex shrink attribute to the flex item int
getAlignSelf()
void
setAlignSelf(int alignSelf)
Sets the align self attribute to the flex item int
getMinWidth()
void
setMinWidth(int minWidth)
Sets the minimum width attribute to the flex item int
getMinHeight()
void
setMinHeight(int minHeight)
Sets the minimum height attribute to the flex item int
getMaxWidth()
void
setMaxWidth(int maxWidth)
Sets the maximum width attribute to the flex item int
getMaxHeight()
void
setMaxHeight(int maxHeight)
Sets the maximum height attribute to the flex item boolean
isWrapBefore()
void
setWrapBefore(boolean wrapBefore)
Sets the wrapBefore attribute to the flex item float
getFlexBasisPercent()
void
setFlexBasisPercent(float flexBasisPercent)
Sets the flex basis percent attribute to the flex item int
getMarginLeft()
int
getMarginTop()
int
getMarginRight()
int
getMarginBottom()
int
getOrder()
void
setOrder(int order)
Sets the order attribute to the flex item int
describeContents()
void
writeToParcel(Parcel dest, int flags)
-
Methods inherited from class android.support.v7.widget.RecyclerView.LayoutParams
getViewAdapterPosition, getViewLayoutPosition, getViewPosition, isItemChanged, isItemRemoved, isViewInvalid, viewNeedsUpdate
-
Methods inherited from class android.view.ViewGroup.MarginLayoutParams
getLayoutDirection, getMarginEnd, getMarginStart, isMarginRelative, resolveLayoutDirection, setLayoutDirection, setMarginEnd, setMarginStart, setMargins
-
Methods inherited from class com.pointrlabs.core.util.flexbox.FlexItem
getMarginEnd, getMarginStart
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
FlexboxLayoutManager.LayoutParams
FlexboxLayoutManager.LayoutParams(Context c, AttributeSet attrs)
-
FlexboxLayoutManager.LayoutParams
FlexboxLayoutManager.LayoutParams(int width, int height)
-
FlexboxLayoutManager.LayoutParams
FlexboxLayoutManager.LayoutParams(ViewGroup.MarginLayoutParams source)
-
FlexboxLayoutManager.LayoutParams
FlexboxLayoutManager.LayoutParams(ViewGroup.LayoutParams source)
-
FlexboxLayoutManager.LayoutParams
FlexboxLayoutManager.LayoutParams(RecyclerView.LayoutParams source)
-
FlexboxLayoutManager.LayoutParams
FlexboxLayoutManager.LayoutParams(FlexboxLayoutManager.LayoutParams source)
-
-
Method Detail
-
getWidth
int getWidth()
-
setWidth
void setWidth(int width)
Sets the width attribute of the flex item.
- Parameters:
width
- the width attribute.
-
getHeight
int getHeight()
-
setHeight
void setHeight(int height)
Sets the height attribute of the flex item.
- Parameters:
height
- the height attribute.
-
getFlexGrow
float getFlexGrow()
-
setFlexGrow
void setFlexGrow(float flexGrow)
Sets the flex grow attribute to the flex item
- Parameters:
flexGrow
- the flex grow attribute
-
getFlexShrink
float getFlexShrink()
-
setFlexShrink
void setFlexShrink(float flexShrink)
Sets the flex shrink attribute to the flex item
- Parameters:
flexShrink
- the flex shrink attribute
-
getAlignSelf
int getAlignSelf()
-
setAlignSelf
void setAlignSelf(int alignSelf)
Sets the align self attribute to the flex item
- Parameters:
alignSelf
- the order attribute
-
getMinWidth
int getMinWidth()
-
setMinWidth
void setMinWidth(int minWidth)
Sets the minimum width attribute to the flex item
- Parameters:
minWidth
- the order attribute
-
getMinHeight
int getMinHeight()
-
setMinHeight
void setMinHeight(int minHeight)
Sets the minimum height attribute to the flex item
- Parameters:
minHeight
- the order attribute
-
getMaxWidth
int getMaxWidth()
-
setMaxWidth
void setMaxWidth(int maxWidth)
Sets the maximum width attribute to the flex item
- Parameters:
maxWidth
- the order attribute
-
getMaxHeight
int getMaxHeight()
-
setMaxHeight
void setMaxHeight(int maxHeight)
Sets the maximum height attribute to the flex item
- Parameters:
maxHeight
- the order attribute
-
isWrapBefore
boolean isWrapBefore()
-
setWrapBefore
void setWrapBefore(boolean wrapBefore)
Sets the wrapBefore attribute to the flex item
- Parameters:
wrapBefore
- the order attribute
-
getFlexBasisPercent
float getFlexBasisPercent()
-
setFlexBasisPercent
void setFlexBasisPercent(float flexBasisPercent)
Sets the flex basis percent attribute to the flex item
- Parameters:
flexBasisPercent
- the order attribute
-
getMarginLeft
int getMarginLeft()
-
getMarginTop
int getMarginTop()
-
getMarginRight
int getMarginRight()
-
getMarginBottom
int getMarginBottom()
-
getOrder
int getOrder()
-
setOrder
void setOrder(int order)
Sets the order attribute to the flex item
- Parameters:
order
- the order attribute
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
-
-
-