LayoutParams

LayoutParams used by StaggeredGridLayoutManager.

Note that if the orientation is VERTICAL, the width parameter is ignored and if the orientation is HORIZONTAL the height parameter is ignored because child view is expected to fill all of the space given to it.

Constructors

Link copied to clipboard
constructor(c: Context, attrs: AttributeSet)
constructor(width: Int, height: Int)
constructor(source: ViewGroup.MarginLayoutParams)
constructor(source: ViewGroup.LayoutParams)
constructor(source: RecyclerView.LayoutParams)

Properties

Link copied to clipboard
Span Id for Views that are not laid out yet.

Functions

Link copied to clipboard
Returns the Span index to which this View is assigned.
Link copied to clipboard
open fun isFullSpan(): Boolean
Returns whether this View occupies all available spans or just one.
Link copied to clipboard
open fun setFullSpan(fullSpan: Boolean)
When set to true, the item will layout using all span area.