Class BoardsViewHolder


  • public class BoardsViewHolder
    extends androidx.recyclerview.widget.RecyclerView.ViewHolder
    The ViewHolder for an item in the leaderboard list and sets the action when the item is clicked as well
    • Field Summary

      Fields 
      Modifier and Type Field Description
      android.widget.ImageView mBoardImage  
      android.widget.TextView mDescription  
      android.widget.TextView mLabel  
      android.widget.TextView mMetricDisplay  
      • Fields inherited from class androidx.recyclerview.widget.RecyclerView.ViewHolder

        itemView
    • Constructor Summary

      Constructors 
      Constructor Description
      BoardsViewHolder​(android.view.View itemView)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void bind​(Board board)
      Binds Board object to the Leaderboards List Views
      void setPlaceHolderResource​(int placeHolderResource)
      Set the placeholder resource in the avatar view
      • 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

      • mBoardImage

        public android.widget.ImageView mBoardImage
      • mLabel

        public android.widget.TextView mLabel
      • mMetricDisplay

        public android.widget.TextView mMetricDisplay
      • mDescription

        public android.widget.TextView mDescription
    • Constructor Detail

      • BoardsViewHolder

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

      • bind

        public void bind​(Board board)
        Binds Board object to the Leaderboards List Views
        Parameters:
        board - Board object
      • setPlaceHolderResource

        public void setPlaceHolderResource​(@DrawableRes
                                           int placeHolderResource)
        Set the placeholder resource in the avatar view
        Parameters:
        placeHolderResource - DrawableRes id of the place holder resource