static class RVCommentAdapter.PostReplyViewHolder
extends RecyclerView.ViewHolder
View
in the listModifier and Type | Field and Description |
---|---|
(package private) android.widget.TextView |
content
Textual components of the display for a single list item
|
(package private) CardView |
cv
The
View to display a single list item |
(package private) android.widget.ImageView[] |
images
Array of image components associated with a list item
|
(package private) ConstraintLayout |
layout
Layout within which the list item components are arranged
|
(package private) android.widget.TextView |
personName
Textual components of the display for a single list item
|
(package private) android.widget.ImageView |
personPhoto
Image components of the display for a single list item
|
(package private) android.widget.ImageView |
postTypePhoto
Image components of the display for a single list item
|
(package private) boolean |
reply |
(package private) android.widget.TextView |
timestamp
Textual components of the display for a single list item
|
(package private) android.widget.TextView |
username
Textual components of the display for a single list item
|
Constructor and Description |
---|
PostReplyViewHolder(android.view.View itemView)
Instantiate instance fields with
View s using View.findViewById(int) |
Modifier and Type | Method and Description |
---|---|
void |
bind(org.codethechange.culturemesh.models.PostReply item,
RVCommentAdapter.OnItemClickListener listener)
Attach a listener to an item in the displayed list
|
boolean |
isPostReply() |
boolean reply
CardView cv
View
to display a single list itemandroid.widget.TextView personName
android.widget.TextView username
android.widget.TextView content
android.widget.TextView timestamp
android.widget.ImageView personPhoto
android.widget.ImageView postTypePhoto
android.widget.ImageView[] images
ConstraintLayout layout
PostReplyViewHolder(android.view.View itemView)
View
s using View.findViewById(int)
itemView
- Item display whose fields are stored in instance fieldspublic boolean isPostReply()
public void bind(org.codethechange.culturemesh.models.PostReply item, RVCommentAdapter.OnItemClickListener listener)
item
- Item in the list to bind the listener tolistener
- Listener to bind to the list item