Class DateViewHolder


  • public class DateViewHolder
    extends androidx.recyclerview.widget.RecyclerView.ViewHolder
    The RecyclerView.ViewHolder class for EventDateListAdapter
    • Field Summary

      Fields 
      Modifier and Type Field Description
      android.widget.TextView dateView  
      android.widget.TextView dayView  
      android.widget.ImageView indicatorView  
      • Fields inherited from class androidx.recyclerview.widget.RecyclerView.ViewHolder

        itemView
    • 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 with EventDate
      void setViewAsSelected​(boolean isSelected)
      Set the state of the current cell
      void setWidth​(int width)
      Set the current width of the current cell
      • Methods inherited from class androidx.recyclerview.widget.RecyclerView.ViewHolder

        getAdapterPosition, getItemId, getItemViewType, getLayoutPosition, getOldPosition, getPosition, isRecyclable, setIsRecyclable, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • dayView

        public android.widget.TextView dayView
      • dateView

        public android.widget.TextView dateView
      • indicatorView

        public android.widget.ImageView indicatorView
    • Constructor Detail

      • DateViewHolder

        public DateViewHolder​(android.view.View itemView)
    • Method Detail

      • 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, else false