Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

OnBindEditTextListener

interface OnBindEditTextListener
androidx.preference.EditTextPreference.OnBindEditTextListener

Interface definition for a callback to be invoked when the corresponding dialog view for this preference is bound. This allows you to customize the EditText displayed in the dialog, such as setting a max length or a specific input type.

Summary

Public methods
abstract Unit
onBindEditText(@NonNull editText: EditText)

Called when the dialog view for this preference has been bound, allowing you to customize the EditText displayed in the dialog.

Public methods

onBindEditText

abstract fun onBindEditText(@NonNull editText: EditText): Unit

Called when the dialog view for this preference has been bound, allowing you to customize the EditText displayed in the dialog.

Parameters
editText EditText: The EditText displayed in the dialog