Package com.cheetahdigital.event.ui.list
Class EventListViewHolder
- java.lang.Object
-
- androidx.recyclerview.widget.RecyclerView.ViewHolder
-
- com.cheetahdigital.event.ui.list.EventListViewHolder
-
public class EventListViewHolder extends androidx.recyclerview.widget.RecyclerView.ViewHolder
TheRecyclerView.ViewHolder
class forEventListFragment
-
-
Field Summary
Fields Modifier and Type Field Description android.widget.TextView
mDateTextView
android.widget.TextView
mHeadingTextView
android.widget.TextView
mLocationTextView
android.widget.TextView
mSubHeadingTextView
android.widget.ImageView
mThumbImageView
android.widget.TextView
mTimeTextView
-
Constructor Summary
Constructors Constructor Description EventListViewHolder(android.view.View itemView)
Constructor forEventListViewHolder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(Event event)
Populates the current view with details fromEvent
void
setPlaceholder(int placeholder)
Set a default placeholder for current image
-
-
-
Field Detail
-
mThumbImageView
public android.widget.ImageView mThumbImageView
-
mHeadingTextView
public android.widget.TextView mHeadingTextView
-
mSubHeadingTextView
public android.widget.TextView mSubHeadingTextView
-
mDateTextView
public android.widget.TextView mDateTextView
-
mTimeTextView
public android.widget.TextView mTimeTextView
-
mLocationTextView
public android.widget.TextView mLocationTextView
-
-
Constructor Detail
-
EventListViewHolder
public EventListViewHolder(android.view.View itemView)
Constructor forEventListViewHolder
- Parameters:
itemView
- view used to bind on the current view holder
-
-
Method Detail
-
bind
public void bind(Event event)
Populates the current view with details fromEvent
- Parameters:
event
- instance ofEvent
-
setPlaceholder
public void setPlaceholder(@DrawableRes int placeholder)
Set a default placeholder for current image- Parameters:
placeholder
- default drawable for image view
-
-