epoxy-adapter / com.airbnb.epoxy / EpoxyModel / getSpanSize

getSpanSize

open fun getSpanSize(totalSpanCount: Int, position: Int, itemCount: Int): Int

Subclasses can override this if they want their view to take up more than one span in a grid layout.

Parameters

totalSpanCount - Int: The number of spans in the grid

position - Int: The position of the model

itemCount - Int: The total number of items in the adapter