Class EventListViewHolder


  • public class EventListViewHolder
    extends androidx.recyclerview.widget.RecyclerView.ViewHolder
    The RecyclerView.ViewHolder class for EventListFragment
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void bind​(Event event)
      Populates the current view with details from Event
      void setPlaceholder​(int placeholder)
      Set a default placeholder for current image
      • 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

      • mThumbImageView

        public android.widget.ImageView mThumbImageView
      • mHeadingTextView

        public android.widget.TextView mHeadingTextView
      • mSubHeadingTextView

        public android.widget.TextView mSubHeadingTextView
      • mDateTextView

        public android.widget.TextView mDateTextView
      • mTimeTextView

        public android.widget.TextView mTimeTextView
      • mLocationTextView

        public android.widget.TextView mLocationTextView
    • Constructor Detail

      • EventListViewHolder

        public EventListViewHolder​(android.view.View itemView)
        Constructor for EventListViewHolder
        Parameters:
        itemView - view used to bind on the current view holder
    • Method Detail

      • bind

        public void bind​(Event event)
        Populates the current view with details from Event
        Parameters:
        event - instance of Event
      • setPlaceholder

        public void setPlaceholder​(@DrawableRes
                                   int placeholder)
        Set a default placeholder for current image
        Parameters:
        placeholder - default drawable for image view