public class SettingCheckBoxPreference
extends android.preference.CheckBoxPreference
CheckBoxPreference that provides additional features supported by the Settings
library.
CheckBoxPreference
android:checkBoxPreferenceStyle| Constructor and Description |
|---|
SettingCheckBoxPreference(android.content.Context context)
Same as
SettingCheckBoxPreference(Context, AttributeSet) without attributes. |
SettingCheckBoxPreference(android.content.Context context,
android.util.AttributeSet attrs)
Same as
SettingCheckBoxPreference(Context, AttributeSet, int) with
R.attr.checkBoxPreferenceStyle as attribute for default style. |
SettingCheckBoxPreference(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr)
Same as
SettingCheckBoxPreference(Context, AttributeSet, int, int) with 0
as default style. |
SettingCheckBoxPreference(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr,
int defStyleRes)
Creates a new instance of SettingCheckBoxPreference for the given context.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onBindView(android.view.View view) |
void |
setKey(String key) |
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, setLayoutResource, setOnPreferenceChangeListener, setOnPreferenceClickListener, setOrder, setPersistent, setSelectable, setShouldDisableView, setSummary, setSummary, setTitle, setTitle, setWidgetLayoutResource, shouldCommit, shouldPersist, toStringpublic SettingCheckBoxPreference(android.content.Context context)
SettingCheckBoxPreference(Context, AttributeSet) without attributes.public SettingCheckBoxPreference(android.content.Context context,
android.util.AttributeSet attrs)
SettingCheckBoxPreference(Context, AttributeSet, int) with
R.attr.checkBoxPreferenceStyle as attribute for default style.public SettingCheckBoxPreference(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr)
SettingCheckBoxPreference(Context, AttributeSet, int, int) with 0
as default style.public SettingCheckBoxPreference(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr,
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 setKey(String key)
setKey in class android.preference.Preferencepublic void onBindView(android.view.View view)
onBindView in class android.preference.CheckBoxPreference