getItemViewType

open override fun getItemViewType(position: Int): Int

Return the view type of the item at position for the purposes of view recycling.

The default implementation of this method returns 0, making the assumption of a single view type for the adapter. Unlike ListView adapters, types need not be contiguous. Consider using id resources to uniquely identify item view types.

Return

integer value identifying the type of the view needed to represent the item at position. Type codes need not be contiguous.

Parameters

position

position to query