Android APIs
public class

SearchEditText

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

Class Overview

EditText widget that monitors keyboard changes.

Summary

Nested Classes
interface SearchEditText.OnKeyboardDismissListener  
[Expand]
Inherited XML Attributes
From class android.widget.TextView
From class android.view.View
[Expand]
Inherited Constants
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
SearchEditText(Context context)
SearchEditText(Context context, AttributeSet attrs)
SearchEditText(Context context, AttributeSet attrs, int defStyle)
Public Methods
boolean onKeyPreIme(int keyCode, KeyEvent event)
Handle a key event before it is processed by any input method associated with the view hierarchy.
void setOnKeyboardDismissListener(SearchEditText.OnKeyboardDismissListener listener)
Set a keyboard dismissed listener.
[Expand]
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.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.ViewTreeObserver.OnPreDrawListener
From interface android.view.accessibility.AccessibilityEventSource

Public Constructors

public SearchEditText (Context context)

public SearchEditText (Context context, AttributeSet attrs)

public SearchEditText (Context context, AttributeSet attrs, int defStyle)

Public Methods

public boolean onKeyPreIme (int keyCode, KeyEvent event)

Handle a key event before it is processed by any input method associated with the view hierarchy. This can be used to intercept key events in special situations before the IME consumes them; a typical example would be handling the BACK key to update the application's UI instead of allowing the IME to see it and close itself.

Parameters
keyCode The value in event.getKeyCode().
event Description of the key event.
Returns
  • If you handled the event, return true. If you want to allow the event to be handled by the next receiver, return false.

public void setOnKeyboardDismissListener (SearchEditText.OnKeyboardDismissListener listener)

Set a keyboard dismissed listener.

Parameters
listener The listener.