|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.support.v4.widget.SearchViewCompat
public class SearchViewCompat
Helper for accessing features in SearchView
introduced after API level 4 in a backwards compatible fashion.
| Nested Class Summary | |
|---|---|
static class |
SearchViewCompat.OnQueryTextListenerCompat
Callbacks for changes to the query text. |
| Method Summary | |
|---|---|
static android.view.View |
newSearchView(android.content.Context context)
Creates a new SearchView. |
static void |
setOnQueryTextListener(android.view.View searchView,
SearchViewCompat.OnQueryTextListenerCompat listener)
Sets a listener for user actions within the SearchView. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static android.view.View newSearchView(android.content.Context context)
context - The Context the view is running in.
public static void setOnQueryTextListener(android.view.View searchView,
SearchViewCompat.OnQueryTextListenerCompat listener)
searchView - The SearchView in which to register the listener.listener - the listener object that receives callbacks when the user performs
actions in the SearchView such as clicking on buttons or typing a query.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||