Class EventResponseListViewHolder
- java.lang.Object
-
- androidx.recyclerview.widget.RecyclerView.ViewHolder
-
- com.cheetahdigital.event.ui.responses.list.EventResponseListViewHolder
-
public class EventResponseListViewHolder extends androidx.recyclerview.widget.RecyclerView.ViewHolder
TheRecyclerView.ViewHolder
class forEventResponseListFragment
-
-
Field Summary
Fields Modifier and Type Field Description android.widget.TextView
dateTextView
android.widget.TextView
locationTextView
android.widget.TextView
mHeadingTextView
android.widget.ImageView
mThumbImageView
android.widget.TextView
subHeadingTextView
android.widget.TextView
timeTextView
-
Constructor Summary
Constructors Constructor Description EventResponseListViewHolder(android.view.View itemView)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(EventResponse eventResponse)
Populate the current view using theEventResponse
void
setPlaceHolder(int placeHolder)
Set a default placeholder for the current image view
-
-
-
Field Detail
-
mThumbImageView
public android.widget.ImageView mThumbImageView
-
mHeadingTextView
public android.widget.TextView mHeadingTextView
-
subHeadingTextView
public android.widget.TextView subHeadingTextView
-
dateTextView
public android.widget.TextView dateTextView
-
timeTextView
public android.widget.TextView timeTextView
-
locationTextView
public android.widget.TextView locationTextView
-
-
Method Detail
-
bind
public void bind(EventResponse eventResponse)
Populate the current view using theEventResponse
- Parameters:
eventResponse
-EventResponse
used to populate the views
-
setPlaceHolder
public void setPlaceHolder(@DrawableRes int placeHolder)
Set a default placeholder for the current image view- Parameters:
placeHolder
- default drawable used
-
-