public class SettingCheckBoxPreference extends CheckBoxPreference
CheckBoxPreference that provides additional features supported by the Settings
library.Preference.BaseSavedState, Preference.OnPreferenceChangeListener, Preference.OnPreferenceClickListenerDEFAULT_ORDER| Constructor and Description |
|---|
SettingCheckBoxPreference(Context context)
Same as
SettingCheckBoxPreference(Context, AttributeSet) without attributes. |
SettingCheckBoxPreference(Context context,
AttributeSet attrs)
Same as
SettingCheckBoxPreference(Context, AttributeSet, int) with
R.attr.checkBoxPreferenceStyle as attribute for default style. |
SettingCheckBoxPreference(Context context,
AttributeSet attrs,
int defStyleAttr)
Same as
SettingCheckBoxPreference(Context, AttributeSet, int, int) with 0
as default style. |
SettingCheckBoxPreference(Context context,
AttributeSet attrs,
int defStyleAttr,
int defStyleRes)
Creates a new instance of SettingCheckBoxPreference within the given context.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onBindView(View view) |
getDisableDependentsState, getSummaryOff, getSummaryOn, isChecked, onClick, onGetDefaultValue, onRestoreInstanceState, onSaveInstanceState, onSetInitialValue, setChecked, setDisableDependentsState, setSummaryOff, setSummaryOff, setSummaryOn, setSummaryOn, shouldDisableDependentscallChangeListener, compareTo, findPreferenceInHierarchy, getContext, getDependency, getEditor, getExtras, getFragment, getIcon, getIntent, getKey, getLayoutResource, getOnPreferenceChangeListener, getOnPreferenceClickListener, getOrder, getPersistedBoolean, getPersistedFloat, getPersistedInt, getPersistedLong, getPersistedString, getPersistedStringSet, getPreferenceManager, getSharedPreferences, getShouldDisableView, getSummary, getTitle, getTitleRes, getView, getWidgetLayoutResource, hasKey, isEnabled, isPersistent, isSelectable, notifyChanged, notifyDependencyChange, notifyHierarchyChanged, onAttachedToActivity, onAttachedToHierarchy, onCreateView, onDependencyChanged, onParentChanged, onPrepareForRemoval, peekExtras, persistBoolean, persistFloat, persistInt, persistLong, persistString, persistStringSet, restoreHierarchyState, saveHierarchyState, setDefaultValue, setDependency, setEnabled, setFragment, setIcon, setIcon, setIntent, setKey, setLayoutResource, setOnPreferenceChangeListener, setOnPreferenceClickListener, setOrder, setPersistent, setSelectable, setShouldDisableView, setSummary, setSummary, setTitle, setTitle, setWidgetLayoutResource, shouldCommit, shouldPersist, toStringpublic SettingCheckBoxPreference(@NonNull Context context)
SettingCheckBoxPreference(Context, AttributeSet) without attributes.public SettingCheckBoxPreference(@NonNull Context context, @Nullable AttributeSet attrs)
SettingCheckBoxPreference(Context, AttributeSet, int) with
R.attr.checkBoxPreferenceStyle as attribute for default style.public SettingCheckBoxPreference(Context context, AttributeSet attrs, int defStyleAttr)
SettingCheckBoxPreference(Context, AttributeSet, int, int) with 0
as default style.public SettingCheckBoxPreference(@NonNull Context context, @Nullable AttributeSet attrs, @AttrRes int defStyleAttr, @StyleRes int defStyleRes)
context - Context in which will be the new setting preference presented.attrs - Set of Xml attributes used to configure the new instance of this preference.defStyleAttr - An attribute which contains a reference to a default style resource for
this preference within a theme of the given context.defStyleRes - Resource id of the default style for the new preference.public void onBindView(View view)
onBindView in class CheckBoxPreference