getSpanCount

open fun getSpanCount(): Int(source)

Returns the number of spans laid out by StaggeredGridLayoutManager.

Return

Number of spans in the layout