Class RedemptionViewHolder
- java.lang.Object
-
- androidx.recyclerview.widget.RecyclerView.ViewHolder
-
- com.cheetahdigital.rewards.ui.redemptions.list.RedemptionViewHolder
-
public class RedemptionViewHolder extends androidx.recyclerview.widget.RecyclerView.ViewHolder
TheRecyclerView.ViewHolder
forRedemptionsListFragment
-
-
Field Summary
Fields Modifier and Type Field Description android.widget.TextView
mBodyTextView
android.widget.TextView
mCreatedAtTextView
android.widget.TextView
mDetailsTextView
android.widget.TextView
mEffectivityTextView
android.widget.TextView
mHeadingTextView
android.widget.TextView
mMetricLabelTextView
android.widget.TextView
mPointsTextView
android.widget.ImageView
mStatusImageView
android.widget.TextView
mSubheadingTextView
android.widget.ImageView
mThumbImageView
-
Constructor Summary
Constructors Constructor Description RedemptionViewHolder(android.view.View itemView)
Simple constructor forRedemptionViewHolder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(Redemption redemption)
This method attaches theRedemption
to the ViewHoldervoid
setPlaceHolderResource(int placeHolderResource)
Set the placeholder resource in the avatar view
-
-
-
Field Detail
-
mThumbImageView
public android.widget.ImageView mThumbImageView
-
mHeadingTextView
public android.widget.TextView mHeadingTextView
-
mPointsTextView
public android.widget.TextView mPointsTextView
-
mBodyTextView
public android.widget.TextView mBodyTextView
-
mStatusImageView
public android.widget.ImageView mStatusImageView
-
mEffectivityTextView
public android.widget.TextView mEffectivityTextView
-
mDetailsTextView
public android.widget.TextView mDetailsTextView
-
mSubheadingTextView
public android.widget.TextView mSubheadingTextView
-
mMetricLabelTextView
public android.widget.TextView mMetricLabelTextView
-
mCreatedAtTextView
public android.widget.TextView mCreatedAtTextView
-
-
Constructor Detail
-
RedemptionViewHolder
public RedemptionViewHolder(@NonNull android.view.View itemView)
Simple constructor forRedemptionViewHolder
- Parameters:
itemView
- view container of the item
-
-
Method Detail
-
bind
public void bind(Redemption redemption)
This method attaches theRedemption
to the ViewHolder- Parameters:
redemption
-Redemption
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
-
-