getSpanSize

abstract fun getSpanSize(spanCount: Int, position: Int, resources: Resources): Int

Provides a preferred span size for the item

Parameters

spanCount

current span count which may also be IRecyclerItemSpan.INVALID_SPAN_COUNT

position

position of the current item

resources

optionally useful for dynamic size check with different configurations