Register now for Android Dev Summit 2019!

GuidedActionEditText

open class GuidedActionEditText : EditText, ImeKeyMonitor, GuidedActionAutofillSupport
kotlin.Any
   ↳ android.view.View
   ↳ android.widget.TextView
   ↳ android.widget.EditText
   ↳ androidx.leanback.widget.GuidedActionEditText

A custom EditText that satisfies the IME key monitoring requirements of GuidedStepFragment.

Summary

Public constructors

<init>(ctx: Context!)

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

<init>(ctx: Context!, attrs: AttributeSet!, defStyleAttr: Int)

Public methods

open Unit

open Int

open Unit

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

open Unit

See TextViewCompat#setCustomSelectionActionModeCallback(TextView, ActionMode.Callback)

open Unit

open Unit

Protected methods

open Unit
onFocusChanged(focused: Boolean, direction: Int, previouslyFocusedRect: Rect!)

Public constructors

<init>

GuidedActionEditText(ctx: Context!)

<init>

GuidedActionEditText(ctx: Context!, attrs: AttributeSet!)

<init>

GuidedActionEditText(ctx: Context!, attrs: AttributeSet!, defStyleAttr: Int)

Public methods

autofill

open fun autofill(values: AutofillValue!): Unit

getAutofillType

open fun getAutofillType(): Int

onInitializeAccessibilityNodeInfo

open fun onInitializeAccessibilityNodeInfo(info: AccessibilityNodeInfo!): Unit

onKeyPreIme

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

setCustomSelectionActionModeCallback

open fun setCustomSelectionActionModeCallback(actionModeCallback: Callback!): Unit

See TextViewCompat#setCustomSelectionActionModeCallback(TextView, ActionMode.Callback)

setImeKeyListener

open fun setImeKeyListener(listener: ImeKeyMonitor.ImeKeyListener!): Unit

setOnAutofillListener

open fun setOnAutofillListener(autofillListener: GuidedActionAutofillSupport.OnAutofillListener!): Unit

Protected methods

onFocusChanged

protected open fun onFocusChanged(focused: Boolean, direction: Int, previouslyFocusedRect: Rect!): Unit