setSpanCount

open fun setSpanCount(spanCount: Int)(source)

Sets the number of spans for the layout. This will invalidate all of the span assignments for Views.

Calling this method will automatically result in a new layout request unless the spanCount parameter is equal to current span count.

Parameters

spanCount

Number of spans to layout