public class ColorPreference
extends android.preference.Preference
| Modifier and Type | Class and Description |
|---|---|
static interface |
ColorPreference.OnShowDialogListener |
| Constructor and Description |
|---|
ColorPreference(android.content.Context context,
android.util.AttributeSet attrs) |
ColorPreference(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
onBindView(android.view.View view) |
protected java.lang.Object |
onGetDefaultValue(android.content.res.TypedArray a,
int index) |
protected void |
onSetInitialValue(boolean restorePersistedValue,
java.lang.Object defaultValue) |
void |
saveValue(int color) |
void |
setOnShowDialogListener(ColorPreference.OnShowDialogListener listener)
Since the color picker dialog is now a DialogFragment
this preference cannot take care of showing it without
access to the fragment manager.
|
callChangeListener, compareTo, findPreferenceInHierarchy, getContext, getDependency, getEditor, getExtras, getFragment, getIcon, getIntent, getKey, getLayoutResource, getOnPreferenceChangeListener, getOnPreferenceClickListener, getOrder, getPersistedBoolean, getPersistedFloat, getPersistedInt, getPersistedLong, getPersistedString, getPreferenceManager, getSharedPreferences, getShouldDisableView, getSummary, getTitle, getTitleRes, getView, getWidgetLayoutResource, hasKey, isEnabled, isPersistent, isSelectable, notifyChanged, notifyDependencyChange, notifyHierarchyChanged, onAttachedToActivity, onAttachedToHierarchy, onClick, onCreateView, onDependencyChanged, onParentChanged, onPrepareForRemoval, onRestoreInstanceState, onSaveInstanceState, peekExtras, persistBoolean, persistFloat, persistInt, persistLong, persistString, restoreHierarchyState, saveHierarchyState, setDefaultValue, setDependency, setEnabled, setFragment, setIcon, setIcon, setIntent, setKey, setLayoutResource, setOnPreferenceChangeListener, setOnPreferenceClickListener, setOrder, setPersistent, setSelectable, setShouldDisableView, setSummary, setSummary, setTitle, setTitle, setWidgetLayoutResource, shouldCommit, shouldDisableDependents, shouldPersist, toStringpublic ColorPreference(android.content.Context context,
android.util.AttributeSet attrs)
public ColorPreference(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle)
public void setOnShowDialogListener(ColorPreference.OnShowDialogListener listener)
listener - protected void onBindView(android.view.View view)
onBindView in class android.preference.Preferenceprotected void onSetInitialValue(boolean restorePersistedValue,
java.lang.Object defaultValue)
onSetInitialValue in class android.preference.Preferenceprotected java.lang.Object onGetDefaultValue(android.content.res.TypedArray a,
int index)
onGetDefaultValue in class android.preference.Preferencepublic void saveValue(int color)