Class BooleanViewHolder
- java.lang.Object
-
- androidx.recyclerview.widget.RecyclerView.ViewHolder
-
- com.cheetahdigital.challenges.ui.responses.profile.attribute.BaseAttributeViewHolder<java.lang.Boolean>
-
- com.cheetahdigital.challenges.ui.responses.profile.attribute.BooleanViewHolder
-
public class BooleanViewHolder extends BaseAttributeViewHolder<java.lang.Boolean>
TheRecyclerView.ViewHolderclass forUpdateAttributeFragment
-
-
Field Summary
Fields Modifier and Type Field Description androidx.appcompat.widget.SwitchCompatswitchViewandroid.widget.TextViewtextView
-
Constructor Summary
Constructors Constructor Description BooleanViewHolder(android.view.View itemView)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbind(ProfileAttribute attr)Method to bind and display theProfileAttributeto theBaseAttributeViewHoldervoidsetLabel(java.lang.String text)Set item labelvoidsetValue(java.lang.Boolean value)Set item value-
Methods inherited from class com.cheetahdigital.challenges.ui.responses.profile.attribute.BaseAttributeViewHolder
getAttribute, setAttribute
-
-
-
-
Method Detail
-
setLabel
public void setLabel(java.lang.String text)
Description copied from class:BaseAttributeViewHolderSet item label- Specified by:
setLabelin classBaseAttributeViewHolder<java.lang.Boolean>- Parameters:
text- label
-
setValue
public void setValue(java.lang.Boolean value)
Description copied from class:BaseAttributeViewHolderSet item value- Specified by:
setValuein classBaseAttributeViewHolder<java.lang.Boolean>- Parameters:
value- value
-
bind
public void bind(ProfileAttribute attr)
Description copied from class:BaseAttributeViewHolderMethod to bind and display theProfileAttributeto theBaseAttributeViewHolder- Specified by:
bindin classBaseAttributeViewHolder<java.lang.Boolean>- Parameters:
attr-ProfileAttributeto display
-
-