Example usage for Java android.preference EditTextPreference fields, constructors, methods, implement or subclass
The text is from its open source code.
EditText | getEditText() Returns the EditText widget that will be shown in the dialog. |
String | getKey() Gets the key for this Preference, which is also the key used for storing values into SharedPreferences or PreferenceDataStore . |
CharSequence | getSummary() Returns the summary of this Preference. |
String | getText() Gets the text from the SharedPreferences . |
void | setDefaultValue(Object defaultValue) Sets the default value for this Preference, which will be set either if persistence is off or persistence is on and the preference is not found in the persistent storage. |
void | setDependency(String dependencyKey) Sets the key of a Preference that this Preference will depend on. |
void | setDialogTitle(CharSequence dialogTitle) Sets the title of the dialog. |
void | setEnabled(boolean enabled) Sets whether this Preference is enabled. |
void | setIcon(Drawable icon) Sets the icon for this Preference with a Drawable. |
void | setKey(String key) Sets the key for this Preference, which is used as a key to the SharedPreferences or PreferenceDataStore . |
void | setOnPreferenceChangeListener(OnPreferenceChangeListener onPreferenceChangeListener) Sets the callback to be invoked when this Preference is changed by the user (but before the internal state has been updated). |
void | setOnPreferenceClickListener(OnPreferenceClickListener onPreferenceClickListener) Sets the callback to be invoked when this Preference is clicked. |
void | setOrder(int order) Sets the order of this Preference with respect to other Preference objects on the same level. |
void | setSummary(CharSequence summary) Sets the summary for this Preference with a CharSequence. |
void | setText(String text) Saves the text to the SharedPreferences . |
void | setTitle(CharSequence title) Sets the title for this Preference with a CharSequence. |