LayoutParams

LayoutParams used by GridLayoutManager.

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
open fun getSpanIndex(): Int
Returns the current span index of this View.
Link copied to clipboard
open fun getSpanSize(): Int
Returns the number of spans occupied by this View.