EditTextPreference
open class EditTextPreference : DialogPreference
kotlin.Any | |||
↳ | 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 | |
---|---|
abstract |
Interface definition for a callback to be invoked when the corresponding dialog view for this preference is bound. |
A simple |
Inherited constants | |
---|---|
Public constructors | |
---|---|
<init>(context: Context!, attrs: AttributeSet!, defStyleAttr: Int, defStyleRes: Int) |
|
<init>(context: Context!, attrs: AttributeSet!, defStyleAttr: Int) |
|
<init>(context: Context!, attrs: AttributeSet!) |
|
Public methods | |
---|---|
open String! |
getText() Gets the text from the current data storage. |
open Unit |
setOnBindEditTextListener(@Nullable onBindEditTextListener: EditTextPreference.OnBindEditTextListener?) Set an |
open Unit |
Saves the text to the current data storage. |
open Boolean |
Protected methods | |
---|---|
open Any! |
onGetDefaultValue(a: TypedArray!, index: Int) |
open Unit |
onRestoreInstanceState(state: Parcelable!) |
open Parcelable! | |
open Unit |
onSetInitialValue(defaultValue: Any?) |
Inherited functions | |
---|---|