Class BoardsViewHolder
- java.lang.Object
-
- androidx.recyclerview.widget.RecyclerView.ViewHolder
-
- com.cheetahdigital.leaderboard.ui.leaderboard_list.BoardsViewHolder
-
public class BoardsViewHolder extends androidx.recyclerview.widget.RecyclerView.ViewHolder
The ViewHolder for an item in the leaderboard list and sets the action when the item is clicked as well
-
-
Field Summary
Fields Modifier and Type Field Description android.widget.ImageView
mBoardImage
android.widget.TextView
mDescription
android.widget.TextView
mLabel
android.widget.TextView
mMetricDisplay
-
Constructor Summary
Constructors Constructor Description BoardsViewHolder(android.view.View itemView)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(Board board)
BindsBoard
object to the Leaderboards List Viewsvoid
setPlaceHolderResource(int placeHolderResource)
Set the placeholder resource in the avatar view
-
-
-
Method Detail
-
bind
public void bind(Board board)
BindsBoard
object to the Leaderboards List Views- Parameters:
board
-Board
object
-
setPlaceHolderResource
public void setPlaceHolderResource(@DrawableRes int placeHolderResource)
Set the placeholder resource in the avatar view- Parameters:
placeHolderResource
-DrawableRes
id of the place holder resource
-
-