public class

SearchEditText

extends EditText
java.lang.Object
   ↳ android.view.View
     ↳ android.widget.TextView
       ↳ android.widget.EditText
         ↳ com.android.contacts.SearchEditText

Class Overview

A custom text editor that helps automatically dismiss the activity along with the soft keyboard.

Summary

[Expand]
Inherited Constants
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
SearchEditText(Context context, AttributeSet attrs)
Public Methods
boolean onKeyPreIme(int keyCode, KeyEvent event)
Forwards the onKeyPreIme call to the view's activity.
boolean onPreDraw()
Conditionally shows a magnifying glass icon on the right side of the text field when the text it empty.
[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, AttributeSet attrs)

Public Methods

public boolean onKeyPreIme (int keyCode, KeyEvent event)

Forwards the onKeyPreIme call to the view's activity.

public boolean onPreDraw ()

Conditionally shows a magnifying glass icon on the right side of the text field when the text it empty.