setSpanCount

fun setSpanCount(spanCount: Int, forced: Boolean)(source)

Sets the number of columns in the grid.

Parameters

spanCount

The number of columns.

forced

If true, the span count will be forced to the given value, overriding any automatic calculation.