EditTextPreference

public class EditTextPreference
extends DialogPreference

java.lang.Object
   ↳ androidx.preference.Preference
     ↳ androidx.preference.DialogPreference
       ↳ androidx.preference.EditTextPreference


A DialogPreference that shows a EditText in the dialog.

This preference saves a string value.

Summary

Nested classes

interface EditTextPreference.OnBindEditTextListener

Interface definition for a callback to be invoked when the corresponding dialog view for this preference is bound. 

class EditTextPreference.SimpleSummaryProvider

A simple Preference.SummaryProvider implementation for an EditTextPreference

Inherited constants

Public constructors

EditTextPreference(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
EditTextPreference(Context context, AttributeSet attrs, int defStyleAttr)
EditTextPreference(Context context, AttributeSet attrs)
EditTextPreference(Context context)

Public methods

String getText()

Gets the text from the current data storage.

void setOnBindEditTextListener(EditTextPreference.OnBindEditTextListener onBindEditTextListener)

Set an EditTextPreference.OnBindEditTextListener that will be invoked when the corresponding dialog view for this preference is b