EditTextPreference.OnBindEditTextListener

public interface 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 void

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

Public methods

onBindEditText

Added in 1.1.0
abstract void 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.

Parameters
@NonNull EditText editText

The EditText displayed in the dialog