Class DateViewHolder
- java.lang.Object
-
- androidx.recyclerview.widget.RecyclerView.ViewHolder
-
- com.cheetahdigital.event.ui.eventdate.list.DateViewHolder
-
public class DateViewHolder extends androidx.recyclerview.widget.RecyclerView.ViewHolder
TheRecyclerView.ViewHolder
class forEventDateListAdapter
-
-
Field Summary
Fields Modifier and Type Field Description android.widget.TextView
dateView
android.widget.TextView
dayView
android.widget.ImageView
indicatorView
-
Constructor Summary
Constructors Constructor Description DateViewHolder(android.view.View itemView)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(EventDate eventDate)
Populate the view withEventDate
void
setViewAsSelected(boolean isSelected)
Set the state of the current cellvoid
setWidth(int width)
Set the current width of the current cell
-
-
-
Method Detail
-
bind
public void bind(EventDate eventDate)
Populate the view withEventDate
- Parameters:
eventDate
- theEventDate
to use
-
setWidth
public void setWidth(int width)
Set the current width of the current cell- Parameters:
width
- width to set
-
setViewAsSelected
public void setViewAsSelected(boolean isSelected)
Set the state of the current cell- Parameters:
isSelected
-true
to set cell as selected, elsefalse
-
-