Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

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.