public class ColorPickerPreference
extends DialogPreference
Preference that allows for string
input.
It is a subclass of DialogPreference and shows the EditText
in a dialog. This EditText can be modified either programmatically
via #getEditText(), or through XML by setting any EditText
attributes on the EditTextPreference.
This preference will store a string into the SharedPreferences.
| Constructor and Description |
|---|
ColorPickerPreference(Context context) |
ColorPickerPreference(Context context,
AttributeSet attrs) |
ColorPickerPreference(Context context,
AttributeSet attrs,
int defStyle) |
| Modifier and Type | Method and Description |
|---|---|
void |
storeColor(int color)
Saves the color to the
SharedPreferences. |