getItemViewType

open override fun getItemViewType(position: Int): Int

Determines the view type for an item in the RecyclerView.

Return

The view type for the item (either VIEW_TYPE_SENT or VIEW_TYPE_RECEIVED).

Parameters

position

The position of the item in the data set.