Class PunchesViewHolder
- java.lang.Object
-
- androidx.recyclerview.widget.RecyclerView.ViewHolder
-
- com.cheetahdigital.punchcards.ui.details.PunchesViewHolder
-
public class PunchesViewHolder extends androidx.recyclerview.widget.RecyclerView.ViewHolder
View Holder for the list of Punches Contains all the view to be displayed in each list item
-
-
Constructor Summary
Constructors Constructor Description PunchesViewHolder(android.view.View itemView)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(Punch data)
Method that binds thePunch
data to the views currently availablevoid
setPunchImageViewHolder(int placeHolder)
Set the default image placeholder for punchcard image
-
-
-
Method Detail
-
bind
public void bind(Punch data)
Method that binds thePunch
data to the views currently available- Parameters:
data
- instance ofPunch
-
setPunchImageViewHolder
public void setPunchImageViewHolder(int placeHolder)
Set the default image placeholder for punchcard image- Parameters:
placeHolder
- id of the drawable to use
-
-