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

MessageSentViewHolder

open class MessageSentViewHolder : ViewHolder, OnLongClickListener

View Holder for message received from other user, it holds reference to frequent update views and provides helper method to bind data information onto views

Constructors

<init>

Constructor method to initialised MessageSentViewHolder

MessageSentViewHolder(itemView: View)

Properties

tvContent

var tvContent: TextView!

tvDate

var tvDate: TextView!

tvTime

var tvTime: TextView!

Functions

bind

helper method to update respective view based on data pass over

open fun bind(msg: ChatMessage!, showDate: Boolean): Unit

onLongClick

catch user long click event, and update observer via #listener

open fun onLongClick(view: View!): Boolean