open class ViewHolder : ViewHolder, OnClickListener
View Holder to hold references to frequent modified views
Author
Chia Yu
Since
2019-09-28
<init> |
constructor method ViewHolder(itemView: View!) |
cbFav |
view that denote whether a user is buddy of current user var cbFav: CheckBox! |
imgViewGender |
view that display user's gender by icon var imgViewGender: ImageView! |
imgViewPic |
view that display user's profile picture var imgViewPic: ImageView! |
llPrefDays |
view group that display user's preferred workout days var llPrefDays: LinearLayout! |
tvName |
view that display user name var tvName: TextView! |
onClick |
when user click on certain view, it update observer by interface open fun onClick(view: View!): Unit |
update |
update item view based on holder's current position open fun update(): Unit |
updatePrefDays |
update preferred workout days based on user open fun updatePrefDays(user: User!): Unit |