RVAdapter.PostViewHolder¶
-
static class
PostViewHolder
extends RecyclerView.ViewHolder¶ Stores the
View
elements of each item in the displayed list. Instances of this class are linked to objects inRVAdapter.netPosts
byRVAdapter.onBindViewHolder(PostViewHolder,int)
, which fills the fields with content from the object.
Fields¶
comment1Layout¶
-
RelativeLayout
comment1Layout
¶ Layout within which the two displayed comments are defined
eventDetailsLL¶
-
LinearLayout
eventDetailsLL
¶ Layout within which the details section of the displayed list item is defined
layout¶
-
ConstraintLayout
layout
¶ Layout within which the displayed list item is defined
Constructors¶
Methods¶
bind¶
-
public void
bind
(FeedItem item, OnItemClickListener listener)¶ Set the displayed list item’s listener that handles clicks to that of the provided listener
Parameters: - item – The clicked-on item which will be passed to the listener’s
OnItemClickListener.onItemClick(FeedItem)
method when the item is clicked - listener – Listener to handle all clicks on items in the list
- item – The clicked-on item which will be passed to the listener’s