SearchEditText

open class SearchEditText : EditText
kotlin.Any
   ↳ android.view.View
   ↳ android.widget.TextView
   ↳ android.widget.EditText
   ↳ 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 Unit

Sets a keyboard dismissed listener.

open Unit

This is required to make the View findable by uiautomator.

open Unit

See TextViewCompat#setCustomSelectionActionModeCallback(TextView, ActionMode.

open Unit
updateRecognizedText(stableText: String!, pendingText: String!)

Updates the recognized text.

open Unit
updateRecognizedText(stableText: String!, rmsValues: MutableList<Float!>!)

open Unit

Resets the text view.

open Unit

Sets the final, non changing, full text result.

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

open static Boolean
isLayoutRtl(view: View!)

Protected methods
open Unit

Public constructors

<init>

SearchEditText(context: Context!)

<init>

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

<init>

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

Public methods

setOnKeyboardDismissListener

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

Sets a keyboard dismissed listener.

Parameters
listener SearchEditText.OnKeyboardDismissListener!: The listener.

onInitializeAccessibilityNodeInfo

open fun onInitializeAccessibilityNodeInfo(info: AccessibilityNodeInfo!): Unit

This is required to make the View findable by uiautomator.

setCustomSelectionActionModeCallback

open fun setCustomSelectionActionModeCallback(actionModeCallback: Callback!): Unit

See TextViewCompat#setCustomSelectionActionModeCallback(TextView, ActionMode.Callback)

updateRecognizedText

open fun updateRecognizedText(stableText: String!, pendingText: String!): Unit

Updates the recognized text.

updateRecognizedText

open fun updateRecognizedText(stableText: String!, rmsValues: MutableList<Float!>!): Unit

reset

open fun reset(): Unit

Resets the text view.

setFinalRecognizedText

open fun setFinalRecognizedText(finalText: CharSequence!): Unit

Sets the final, non changing, full text result. This should only happen at the very end of a recognition.

Parameters
finalText CharSequence!: to the view to.

onKeyPreIme

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

isLayoutRtl

open static fun isLayoutRtl(view: View!): Boolean

Protected methods

onFinishInflate

protected open fun onFinishInflate(): Unit