Package com.cheetahdigital.friends.ui
Class FriendsViewHolder
- java.lang.Object
-
- androidx.recyclerview.widget.RecyclerView.ViewHolder
-
- com.cheetahdigital.friends.ui.FriendsViewHolder
-
public class FriendsViewHolder extends androidx.recyclerview.widget.RecyclerView.ViewHolder
TheRecyclerView.ViewHolder
class forFriendsFragment
-
-
Constructor Summary
Constructors Constructor Description FriendsViewHolder(android.view.View itemView)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(Friend friend)
Method to bind and display theFriend
to theFriendsViewHolder
void
setPlaceholder(int placeholder)
Set the placeholder resource in the avatar view
-
-
-
Method Detail
-
bind
public void bind(Friend friend)
Method to bind and display theFriend
to theFriendsViewHolder
- Parameters:
friend
-Friend
to display
-
setPlaceholder
public void setPlaceholder(@DrawableRes int placeholder)
Set the placeholder resource in the avatar view- Parameters:
placeholder
-DrawableRes
id of the place holder resource
-
-