getLayoutManager

open override fun getLayoutManager(viewType: Int): AutoFitGridLayoutManager(source)

Returns the AutoFitGridLayoutManager to be used for the RecyclerView.

This method creates an AutoFitGridLayoutManager and sets its spanSizeLookup to determine the span size for each item in the grid.

Return

An AutoFitGridLayoutManager configured for this view.

Parameters

viewType

The view type for which the layout manager is being requested. This parameter is currently not used in this implementation.