-
public class StaggeredGridLayoutManager.LayoutParams extends RecyclerView.LayoutParams
LayoutParams used by StaggeredGridLayoutManager.
Note that if the orientation is VERTICAL, the width parameter is ignored and if theorientation is HORIZONTAL the height parameter is ignored because child view isexpected to fill all of the space given to it.
-
-
Field Summary
Fields Modifier and Type Field Description public final static int
INVALID_SPAN_ID
-
Constructor Summary
Constructors Constructor Description StaggeredGridLayoutManager.LayoutParams(Context c, AttributeSet attrs)
StaggeredGridLayoutManager.LayoutParams(int width, int height)
StaggeredGridLayoutManager.LayoutParams(ViewGroup.MarginLayoutParams source)
StaggeredGridLayoutManager.LayoutParams(ViewGroup.LayoutParams source)
StaggeredGridLayoutManager.LayoutParams(RecyclerView.LayoutParams source)
-
Method Summary
Modifier and Type Method Description void
setFullSpan(boolean fullSpan)
When set to true, the item will layout using all span area. boolean
isFullSpan()
Returns whether this View occupies all available spans or just one. final int
getSpanIndex()
Returns the Span index to which this View is assigned. -
Methods inherited from class tds.androidx.recyclerview.widget.RecyclerView.LayoutParams
getAbsoluteAdapterPosition, getBindingAdapterPosition, 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
StaggeredGridLayoutManager.LayoutParams
StaggeredGridLayoutManager.LayoutParams(Context c, AttributeSet attrs)
-
StaggeredGridLayoutManager.LayoutParams
StaggeredGridLayoutManager.LayoutParams(int width, int height)
-
StaggeredGridLayoutManager.LayoutParams
StaggeredGridLayoutManager.LayoutParams(ViewGroup.MarginLayoutParams source)
-
StaggeredGridLayoutManager.LayoutParams
StaggeredGridLayoutManager.LayoutParams(ViewGroup.LayoutParams source)
-
StaggeredGridLayoutManager.LayoutParams
StaggeredGridLayoutManager.LayoutParams(RecyclerView.LayoutParams source)
-
-
Method Detail
-
setFullSpan
void setFullSpan(boolean fullSpan)
When set to true, the item will layout using all span area. That means, if orientationis vertical, the view will have full width; if orientation is horizontal, the view willhave full height.
- Parameters:
fullSpan
- True if this item should traverse all spans.
-
isFullSpan
boolean isFullSpan()
Returns whether this View occupies all available spans or just one.
-
getSpanIndex
final int getSpanIndex()
Returns the Span index to which this View is assigned.
-
-
-
-