Class EventsViewHolder


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

      Fields 
      Modifier and Type Field Description
      android.widget.ImageView favoriteView  
      android.widget.TextView labelView  
      android.widget.TextView locationView  
      android.widget.TextView timeView  
      • Fields inherited from class androidx.recyclerview.widget.RecyclerView.ViewHolder

        itemView
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void bind​(Event event)
      Populate the view with Event
      • 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

      • labelView

        public android.widget.TextView labelView
      • timeView

        public android.widget.TextView timeView
      • locationView

        public android.widget.TextView locationView
      • favoriteView

        public android.widget.ImageView favoriteView
    • Constructor Detail

      • EventsViewHolder

        public EventsViewHolder​(android.view.View itemView)
        Constructor of EventsViewHolder
        Parameters:
        itemView - view to use for the view holder
    • Method Detail

      • bind

        public void bind​(Event event)
        Populate the view with Event
        Parameters:
        event - the Event to use