Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 24.1.0
belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1

GuidedActionEditText

public class GuidedActionEditText
extends EditText implements ImeKeyMonitor

java.lang.Object
   ↳ android.view.View
     ↳ android.widget.TextView
       ↳ android.widget.EditText
         ↳ android.support.v17.leanback.widget.GuidedActionEditText


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

Summary

Inherited constants

From class android.widget.TextView
From class android.view.View

Inherited fields

From class android.view.View

Public constructors

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

Public methods

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

Set the listener for this edit text object.

Protected methods

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

Inherited methods

From class android.widget.EditText
From class android.widget.TextView
From class android.view.View
From class java.lang.Object
From interface android.view.ViewTreeObserver.OnPreDrawListener
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.accessibility.AccessibilityEventSource
From interface android.support.v17.leanback.widget.ImeKeyMonitor

Public constructors

GuidedActionEditText

added in version 24.1.0
GuidedActionEditText (Context ctx)

Parameters
ctx Context

GuidedActionEditText

added in version 24.1.0
GuidedActionEditText (Context ctx, 
                AttributeSet attrs)

Parameters
ctx Context

attrs AttributeSet

GuidedActionEditText

added in version 24.1.0
GuidedActionEditText (Context ctx, 
                AttributeSet attrs, 
                int defStyleAttr)

Parameters
ctx Context

attrs AttributeSet

defStyleAttr int

Public methods

onInitializeAccessibilityNodeInfo

void onInitializeAccessibilityNodeInfo (AccessibilityNodeInfo info)

Parameters
info AccessibilityNodeInfo

onKeyPreIme

boolean onKeyPreIme (int keyCode, 
                KeyEvent event)

Parameters
keyCode int

event KeyEvent

Returns
boolean

setImeKeyListener

added in version 24.1.0
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

Protected methods

onFocusChanged

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

Parameters
focused boolean

direction int

previouslyFocusedRect Rect