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.ViewHolder
class forUpdateAttributeFragment
-
-
Field Summary
Fields Modifier and Type Field Description androidx.appcompat.widget.SwitchCompat
switchView
android.widget.TextView
textView
-
Constructor Summary
Constructors Constructor Description BooleanViewHolder(android.view.View itemView)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(ProfileAttribute attr)
Method to bind and display theProfileAttribute
to theBaseAttributeViewHolder
void
setLabel(java.lang.String text)
Set item labelvoid
setValue(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:BaseAttributeViewHolder
Set item label- Specified by:
setLabel
in classBaseAttributeViewHolder<java.lang.Boolean>
- Parameters:
text
- label
-
setValue
public void setValue(java.lang.Boolean value)
Description copied from class:BaseAttributeViewHolder
Set item value- Specified by:
setValue
in classBaseAttributeViewHolder<java.lang.Boolean>
- Parameters:
value
- value
-
bind
public void bind(ProfileAttribute attr)
Description copied from class:BaseAttributeViewHolder
Method to bind and display theProfileAttribute
to theBaseAttributeViewHolder
- Specified by:
bind
in classBaseAttributeViewHolder<java.lang.Boolean>
- Parameters:
attr
-ProfileAttribute
to display
-
-