public class ColorPreference extends ListDialogPreference
ListDialogPreference.OnValueChangedListener
Constructor and Description |
---|
ColorPreference(android.content.Context context,
android.util.AttributeSet attrs) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.CharSequence |
getTitleAt(int index) |
protected void |
onBindListItem(android.view.View view,
int index)
Populates a list item view with data for the specified index.
|
protected void |
onBindView(android.view.View view) |
void |
setPreviewEnabled(boolean enabled) |
boolean |
shouldDisableDependents()
This determines whether the dependent preferences below this should be disabled.
|
getIndexForValue, getSummary, getValue, getValueAt, onGetDefaultValue, onPrepareDialogBuilder, onRestoreInstanceState, onSaveInstanceState, onSetInitialValue, setListItemLayoutResource, setOnValueChangedListener, setTitles, setValue, setValues
getDialog, getDialogIcon, getDialogLayoutResource, getDialogMessage, getDialogTitle, getNegativeButtonText, getPositiveButtonText, onActivityDestroy, onBindDialogView, onClick, onClick, onCreateDialogView, onDialogClosed, onDismiss, setDialogIcon, setDialogIcon, setDialogLayoutResource, setDialogMessage, setDialogMessage, setDialogTitle, setDialogTitle, setNegativeButtonText, setNegativeButtonText, setPositiveButtonText, setPositiveButtonText, showDialog
callChangeListener, compareTo, findPreferenceInHierarchy, getContext, getDependency, getEditor, getExtras, getFragment, getIcon, getIntent, getKey, getLayoutResource, getOnPreferenceChangeListener, getOnPreferenceClickListener, getOrder, getParent, getPersistedBoolean, getPersistedFloat, getPersistedInt, getPersistedLong, getPersistedString, getPersistedStringSet, getPreferenceDataStore, getPreferenceManager, getSharedPreferences, getShouldDisableView, getTitle, getTitleRes, getView, getWidgetLayoutResource, hasKey, isEnabled, isIconSpaceReserved, isPersistent, isRecycleEnabled, isSelectable, isSingleLineTitle, notifyChanged, notifyDependencyChange, notifyHierarchyChanged, onAttachedToActivity, onAttachedToHierarchy, onCreateView, onDependencyChanged, onParentChanged, onPrepareForRemoval, peekExtras, persistBoolean, persistFloat, persistInt, persistLong, persistString, persistStringSet, restoreHierarchyState, saveHierarchyState, setDefaultValue, setDependency, setEnabled, setFragment, setIcon, setIcon, setIconSpaceReserved, setIntent, setKey, setLayoutResource, setOnPreferenceChangeListener, setOnPreferenceClickListener, setOrder, setPersistent, setPreferenceDataStore, setRecycleEnabled, setSelectable, setShouldDisableView, setSingleLineTitle, setSummary, setSummary, setTitle, setTitle, setWidgetLayoutResource, shouldCommit, shouldPersist, toString
public ColorPreference(android.content.Context context, android.util.AttributeSet attrs)
public void setPreviewEnabled(boolean enabled)
enabled
- whether to show a preview in the preference itempublic boolean shouldDisableDependents()
shouldDisableDependents
in class android.preference.Preference
protected java.lang.CharSequence getTitleAt(int index)
getTitleAt
in class ListDialogPreference
protected void onBindView(android.view.View view)
onBindView
in class android.preference.Preference
protected void onBindListItem(android.view.View view, int index)
ListDialogPreference
onBindListItem
in class ListDialogPreference
view
- the view to populateindex
- the index for which to populate the viewListDialogPreference.setListItemLayoutResource(int)
,
ListDialogPreference.getValueAt(int)
,
ListDialogPreference.getTitleAt(int)