public class SettingPreference
extends android.preference.Preference
Preference that provides additional features supported by the Settings
library.
Preference
android:preferenceStyle| Constructor and Description |
|---|
SettingPreference(android.content.Context context)
Same as
SettingPreference(Context, AttributeSet) without attributes. |
SettingPreference(android.content.Context context,
android.util.AttributeSet attrs)
Same as
SettingPreference(Context, AttributeSet, int) with
R.attr.preferenceStyle as attribute for default style. |
SettingPreference(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr)
Same as
SettingPreference(Context, AttributeSet, int, int) with 0 as default
style. |
SettingPreference(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr,
int defStyleRes)
Creates a new instance of SettingPreference for the given context.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onBindView(android.view.View view) |
void |
setKey(String key) |
callChangeListener, 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, onClick, onCreateView, onDependencyChanged, onGetDefaultValue, onParentChanged, onPrepareForRemoval, onRestoreInstanceState, onSaveInstanceState, onSetInitialValue, 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, shouldDisableDependents, shouldPersist, toStringpublic SettingPreference(android.content.Context context)
SettingPreference(Context, AttributeSet) without attributes.public SettingPreference(android.content.Context context,
android.util.AttributeSet attrs)
SettingPreference(Context, AttributeSet, int) with
R.attr.preferenceStyle as attribute for default style.public SettingPreference(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr)
SettingPreference(Context, AttributeSet, int, int) with 0 as default
style.public SettingPreference(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.Preference