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.ViewHolderTheRecyclerView.ViewHolderclass forEventDateListAdapter
-
-
Field Summary
Fields Modifier and Type Field Description android.widget.TextViewdateViewandroid.widget.TextViewdayViewandroid.widget.ImageViewindicatorView
-
Constructor Summary
Constructors Constructor Description DateViewHolder(android.view.View itemView)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbind(EventDate eventDate)Populate the view withEventDatevoidsetViewAsSelected(boolean isSelected)Set the state of the current cellvoidsetWidth(int width)Set the current width of the current cell
-
-
-
Method Detail
-
bind
public void bind(EventDate eventDate)
Populate the view withEventDate- Parameters:
eventDate- theEventDateto 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-trueto set cell as selected, elsefalse
-
-