RVCommentAdapter.PostReplyViewHolder

static class PostReplyViewHolder extends RecyclerView.ViewHolder

Holder for the parts of each View in the list

Fields

cv

CardView cv

The View to display a single list item

images

ImageView[] images

Array of image components associated with a list item

layout

ConstraintLayout layout

Layout within which the list item components are arranged

personName

TextView personName

Textual components of the display for a single list item

personPhoto

ImageView personPhoto

Image components of the display for a single list item

reply

boolean reply

Constructors

PostReplyViewHolder

PostReplyViewHolder(View itemView)

Instantiate instance fields with Views using View.findViewById(int)

Parameters:
  • itemView – Item display whose fields are stored in instance fields

Methods

bind

public void bind(PostReply item, OnItemClickListener listener)

Attach a listener to an item in the displayed list

Parameters:
  • item – Item in the list to bind the listener to
  • listener – Listener to bind to the list item

isPostReply

public boolean isPostReply()