Java android.preference EditTextPreference fields, constructors, methods, implement or subclass

Example usage for Java android.preference EditTextPreference fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.preference EditTextPreference.

The text is from its open source code.

Subclass

android.preference.EditTextPreference has subclasses.
Click this link to see all its subclasses.

Constructor

Method

EditTextgetEditText()
Returns the EditText widget that will be shown in the dialog.
StringgetKey()
Gets the key for this Preference, which is also the key used for storing values into SharedPreferences or PreferenceDataStore .
CharSequencegetSummary()
Returns the summary of this Preference.
StringgetText()
Gets the text from the SharedPreferences .
voidsetDefaultValue(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.
voidsetDependency(String dependencyKey)
Sets the key of a Preference that this Preference will depend on.
voidsetDialogTitle(CharSequence dialogTitle)
Sets the title of the dialog.
voidsetEnabled(boolean enabled)
Sets whether this Preference is enabled.
voidsetIcon(Drawable icon)
Sets the icon for this Preference with a Drawable.
voidsetKey(String key)
Sets the key for this Preference, which is used as a key to the SharedPreferences or PreferenceDataStore .
voidsetOnPreferenceChangeListener(OnPreferenceChangeListener onPreferenceChangeListener)
Sets the callback to be invoked when this Preference is changed by the user (but before the internal state has been updated).
voidsetOnPreferenceClickListener(OnPreferenceClickListener onPreferenceClickListener)
Sets the callback to be invoked when this Preference is clicked.
voidsetOrder(int order)
Sets the order of this Preference with respect to other Preference objects on the same level.
voidsetSummary(CharSequence summary)
Sets the summary for this Preference with a CharSequence.
voidsetText(String text)
Saves the text to the SharedPreferences .
voidsetTitle(CharSequence title)
Sets the title for this Preference with a CharSequence.