EditTextPreference

A DialogPreference that shows a EditText in the dialog.

This preference saves a string value.

Constructors

Link copied to clipboard
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet, defStyleAttr: Int, defStyleRes: Int)
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet, defStyleAttr: Int)
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet)
constructor(@NonNull context: Context)

Types

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

Functions

Link copied to clipboard
open fun getText(): String
Gets the text from the current data storage.
Link copied to clipboard
Set an OnBindEditTextListener that will be invoked when the corresponding dialog view for this preference is bound.
Link copied to clipboard
open fun setText(@Nullable text: String)
Saves the text to the current data storage.
Link copied to clipboard
Checks whether this preference's dependents should currently be disabled.