Class PunchesViewHolder
- java.lang.Object
-
- androidx.recyclerview.widget.RecyclerView.ViewHolder
-
- com.cheetahdigital.punchcards.ui.details.PunchesViewHolder
-
public class PunchesViewHolder extends androidx.recyclerview.widget.RecyclerView.ViewHolderView 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 voidbind(Punch data)Method that binds thePunchdata to the views currently availablevoidsetPunchImageViewHolder(int placeHolder)Set the default image placeholder for punchcard image
-
-
-
Method Detail
-
bind
public void bind(Punch data)
Method that binds thePunchdata 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
-
-