Class PunchcardViewHolder
- java.lang.Object
-
- androidx.recyclerview.widget.RecyclerView.ViewHolder
-
- com.cheetahdigital.punchcards.ui.list.PunchcardViewHolder
-
public class PunchcardViewHolder extends androidx.recyclerview.widget.RecyclerView.ViewHolder
View Holder for the list ofPunchcardInstance
Contains all the view to be displayed in each list item
-
-
Field Summary
Fields Modifier and Type Field Description android.widget.ProgressBar
mProgressBarPunchCount
android.view.View
mPunchcardContainer
android.widget.TextView
mTextViewHeading
android.widget.TextView
mTextViewPunchCount
android.widget.TextView
mTextViewValidity
-
Constructor Summary
Constructors Constructor Description PunchcardViewHolder(android.view.View itemView)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(PunchcardInstance punchcardInstance)
Method that binds thePunchcardInstance
data to the views currently available
-
-
-
Field Detail
-
mTextViewPunchCount
public android.widget.TextView mTextViewPunchCount
-
mTextViewHeading
public android.widget.TextView mTextViewHeading
-
mTextViewValidity
public android.widget.TextView mTextViewValidity
-
mProgressBarPunchCount
public android.widget.ProgressBar mProgressBarPunchCount
-
mPunchcardContainer
public android.view.View mPunchcardContainer
-
-
Method Detail
-
bind
public void bind(PunchcardInstance punchcardInstance)
Method that binds thePunchcardInstance
data to the views currently available- Parameters:
punchcardInstance
- thePunchcardInstance
used to display
-
-