Class CommentViewHolder


  • public class CommentViewHolder
    extends androidx.recyclerview.widget.RecyclerView.ViewHolder
    The RecyclerView.ViewHolder class for CommentsAdapter
    • Field Summary

      Fields 
      Modifier and Type Field Description
      android.widget.TextView mCommentsTextView  
      android.widget.TextView mDateTextView  
      • Fields inherited from class androidx.recyclerview.widget.RecyclerView.ViewHolder

        itemView
    • Constructor Summary

      Constructors 
      Constructor Description
      CommentViewHolder​(android.view.View v)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void bind​(Comment comment)
      Method to bind and display the Comment to the CommentsAdapter
      • 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

      • mDateTextView

        public android.widget.TextView mDateTextView
      • mCommentsTextView

        public android.widget.TextView mCommentsTextView
    • Constructor Detail

      • CommentViewHolder

        public CommentViewHolder​(android.view.View v)