setSpanCount

fun setSpanCount(spans: Int)

Updates the number of spans of the PivotLayoutManager used by this RecyclerView.

Parameters

spans

number of columns in vertical orientation, or number of rows in horizontal orientation. Must be greater than 0