app / sg.edu.ntu.scse.cz2006.gymbuddies.adapter / MessageAdapter / getItemViewType

getItemViewType

open fun getItemViewType(position: Int): Int

the method return type of view based on current user id view type will determine either message sent or received item layout to be rendered on screen

Parameters

position - Int: position of displaying view

Return
Int: type of view