Class HostViewHolder
- java.lang.Object
-
- androidx.recyclerview.widget.RecyclerView.ViewHolder
-
- com.cheetahdigital.event.ui.eventdate.detail.HostViewHolder
-
public class HostViewHolder extends androidx.recyclerview.widget.RecyclerView.ViewHolder
TheRecyclerView.ViewHolder
class forHostsAdapter
-
-
Field Summary
Fields Modifier and Type Field Description android.view.View
mAvatarContainer
android.widget.ImageView
mAvatarView
android.widget.TextView
mJobTitleView
android.widget.TextView
mNameView
android.widget.TextView
mPlaceHolderText
-
Constructor Summary
Constructors Constructor Description HostViewHolder(android.view.View itemView)
Constructor forHostViewHolder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(Host host)
Populate the views withHost
passed on this methodvoid
setPlaceHolder(int placeHolder)
Set the placeholder resource in the avatar view
-
-
-
Field Detail
-
mAvatarView
public android.widget.ImageView mAvatarView
-
mAvatarContainer
public android.view.View mAvatarContainer
-
mNameView
public android.widget.TextView mNameView
-
mJobTitleView
public android.widget.TextView mJobTitleView
-
mPlaceHolderText
public android.widget.TextView mPlaceHolderText
-
-
Constructor Detail
-
HostViewHolder
public HostViewHolder(android.view.View itemView)
Constructor forHostViewHolder
- Parameters:
itemView
- view used to bind with current view holder
-
-
Method Detail
-
bind
public void bind(Host host)
Populate the views withHost
passed on this method- Parameters:
host
- theHost
used
-
setPlaceHolder
public void setPlaceHolder(@DrawableRes int placeHolder)
Set the placeholder resource in the avatar view- Parameters:
placeHolder
-DrawableRes
id of the place holder resource
-
-