public class AbstractCompoundButtonPreference extends AbstractTwoStatePreference
AbstractTwoStatePreferences that contain a CompoundButton as their widget.AbstractTwoStatePreference.SavedState| Constructor and Description |
|---|
AbstractCompoundButtonPreference(android.content.Context context)
Creates a new
AbstractTwoStatePreferences that contain a CompoundButton as
their widget. |
AbstractCompoundButtonPreference(android.content.Context context,
android.util.AttributeSet attributeSet)
Creates a new
AbstractTwoStatePreferences that contain a CompoundButton as
their widget. |
AbstractCompoundButtonPreference(android.content.Context context,
android.util.AttributeSet attributeSet,
int defaultStyle)
Creates a new
AbstractTwoStatePreferences that contain a CompoundButton as
their widget. |
AbstractCompoundButtonPreference(android.content.Context context,
android.util.AttributeSet attributeSet,
int defaultStyle,
int defaultStyleResource)
Creates a new
AbstractTwoStatePreferences that contain a CompoundButton as
their widget. |
| Modifier and Type | Method and Description |
|---|---|
void |
onBindViewHolder(PreferenceViewHolder holder) |
protected void |
onCheckedChanged(boolean checked)
The method, which is invoked, when the preference has been checked or unchecked.
|
getDisableDependentsState, getSummary, getSummaryOff, getSummaryOn, isChecked, onClick, onGetDefaultValue, onRestoreInstanceState, onSaveInstanceState, onSetInitialValue, performClick, setChecked, setDisableDependentsState, setSummaryOff, setSummaryOff, setSummaryOn, setSummaryOn, shouldDisableDependents, togglegetIconTintList, getIconTintMode, setIcon, setIconTint, setIconTintList, setIconTintModepublic AbstractCompoundButtonPreference(android.content.Context context)
AbstractTwoStatePreferences that contain a CompoundButton as
their widget.context - The context, which should be used by the preference, as an instance of the class
Context. The context may not be nullpublic AbstractCompoundButtonPreference(android.content.Context context,
android.util.AttributeSet attributeSet)
AbstractTwoStatePreferences that contain a CompoundButton as
their widget.context - The context, which should be used by the preference, as an instance of the class
Context. The context may not be nullattributeSet - The attributes of the XML tag that is inflating the preference, as an instance of the
type AttributeSet or null, if no attributes are availablepublic AbstractCompoundButtonPreference(android.content.Context context,
android.util.AttributeSet attributeSet,
int defaultStyle)
AbstractTwoStatePreferences that contain a CompoundButton as
their widget.context - The context, which should be used by the preference, as an instance of the class
Context. The context may not be nullattributeSet - The attributes of the XML tag that is inflating the preference, as an instance of the
type AttributeSet or null, if no attributes are availabledefaultStyle - The default style to apply to this preference. If 0, no style will be applied (beyond
what is included in the theme). This may either be an attribute resource, whose value
will be retrieved from the current theme, or an explicit style resourcepublic AbstractCompoundButtonPreference(android.content.Context context,
android.util.AttributeSet attributeSet,
int defaultStyle,
int defaultStyleResource)
AbstractTwoStatePreferences that contain a CompoundButton as
their widget.context - The context, which should be used by the preference, as an instance of the class
Context. The context may not be nullattributeSet - The attributes of the XML tag that is inflating the preference, as an instance of the
type AttributeSet or null, if no attributes are availabledefaultStyle - The default style to apply to this preference. If 0, no style will be applied (beyond
what is included in the theme). This may either be an attribute resource, whose value
will be retrieved from the current theme, or an explicit style resourcedefaultStyleResource - A resource identifier of a style resource that supplies default values for the
preference, used only if the default style is 0 or can not be found in the theme. Can
be 0 to not look for defaultspublic void onBindViewHolder(PreferenceViewHolder holder)
onBindViewHolder in class AbstractTwoStatePreferenceprotected void onCheckedChanged(boolean checked)
AbstractTwoStatePreferenceonCheckedChanged in class AbstractTwoStatePreferencechecked - True, if the preference has been checked, false otherwise