The second Android 11 Developer Preview is now available, test it out and share your feedback.

SearchEditText

open class SearchEditText : StreamingTextView
androidx.leanback.widget.SearchEditText

EditText widget that monitors keyboard changes.

Summary

Nested classes

abstract

Interface for receiving notification when the keyboard is dismissed.

Public constructors

<init>(context: Context!)

<init>(context: Context!, attrs: AttributeSet!)

<init>(context: Context!, attrs: AttributeSet!, defStyle: Int)

Public methods

open Boolean
onKeyPreIme(keyCode: Int, event: KeyEvent!)

open Unit

Sets a keyboard dismissed listener.

Public constructors

<init>

SearchEditText(context: Context!)

<init>

SearchEditText(
    context: Context!,
    attrs: AttributeSet!)

<init>

SearchEditText(
    context: Context!,
    attrs: AttributeSet!,
    defStyle: Int)

Public methods

onKeyPreIme

open fun onKeyPreIme(
    keyCode: Int,
    event: KeyEvent!
): Boolean

setOnKeyboardDismissListener

open fun setOnKeyboardDismissListener(listener: SearchEditText.OnKeyboardDismissListener!): Unit

Sets a keyboard dismissed listener.

Parameters
listener SearchEditText.OnKeyboardDismissListener!: The listener.