belongs to Maven artifact androidx.leanback:leanback:1.0.0-alpha1

GuidedActionEditText

public class GuidedActionEditText
extends EditText implements ImeKeyMonitor, GuidedActionAutofillSupport

java.lang.Object
   ↳ 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

Inherited constants

Inherited fields

Public constructors

GuidedActionEditText(Context ctx)
GuidedActionEditText(Context ctx, AttributeSet attrs)
GuidedActionEditText(Context ctx, AttributeSet attrs, int defStyleAttr)

Public methods

void autofill(AutofillValue values)
int getAutofillType()
void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info)
boolean onKeyPreIme(int keyCode, KeyEvent event)
void setImeKeyListener(ImeKeyMonitor.ImeKeyListener listener)

Set the listener for this edit text object.

void setOnAutofillListener(GuidedActionAutofillSupport.OnAutofillListener autofillListener)

Sets AutofillListener on the custom view.

Protected methods

void onFocusChanged(boolean focused, int direction, Rect previouslyFocusedRect)

Inherited methods

Public constructors

GuidedActionEditText

GuidedActionEditText (Context ctx)

Parameters
ctx Context

GuidedActionEditText

GuidedActionEditText (Context ctx, 
                AttributeSet attrs)

Parameters
ctx Context

attrs AttributeSet

GuidedActionEditText

GuidedActionEditText (Context ctx, 
                AttributeSet attrs, 
                int defStyleAttr)

Parameters
ctx Context

attrs AttributeSet

defStyleAttr int

Public methods

autofill

void autofill (AutofillValue values)

Parameters
values AutofillValue

getAutofillType

int getAutofillType ()

Returns
int

onInitializeAccessibilityNodeInfo

void onInitializeAccessibilityNodeInfo (AccessibilityNodeInfo info)

Parameters
info AccessibilityNodeInfo

onKeyPreIme

boolean onKeyPreIme (int keyCode, 
                KeyEvent event)

Parameters
keyCode int

event KeyEvent

Returns
boolean

setImeKeyListener

void setImeKeyListener (ImeKeyMonitor.ImeKeyListener listener)

Set the listener for this edit text object. The listener's onKeyPreIme method will be invoked from the host edit text's onKeyPreIme method.

Parameters
listener ImeKeyMonitor.ImeKeyListener

setOnAutofillListener

void setOnAutofillListener (GuidedActionAutofillSupport.OnAutofillListener autofillListener)

Sets AutofillListener on the custom view.

Parameters
autofillListener GuidedActionAutofillSupport.OnAutofillListener

Protected methods

onFocusChanged

void onFocusChanged (boolean focused, 
                int direction, 
                Rect previouslyFocusedRect)

Parameters
focused boolean

direction int

previouslyFocusedRect Rect