public final class SearchSuggestionListener
extends java.lang.Object
implements android.widget.SearchView.OnSuggestionListener, android.widget.SearchView.OnQueryTextListener
Modifier and Type | Class and Description |
---|---|
static interface |
SearchSuggestionListener.SuggestionListenerCallback |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLOUD_SEARCH_QUEREY_TEXT
Called when the user submits the query.
|
Constructor and Description |
---|
SearchSuggestionListener(android.widget.SearchView searchview) |
SearchSuggestionListener(android.widget.SearchView searchview,
android.content.Context context) |
SearchSuggestionListener(android.widget.SearchView searchview,
SearchSuggestionListener.SuggestionListenerCallback callback) |
SearchSuggestionListener(android.widget.SearchView searchview,
SearchSuggestionListener.SuggestionListenerCallback callback,
android.content.Context context,
boolean isChangeTextColor,
int idColorResource) |
Modifier and Type | Method and Description |
---|---|
void |
hideProgressBar() |
boolean |
onQueryTextChange(java.lang.String newText)
Called when the query text is changed by the user.
|
boolean |
onQueryTextSubmit(java.lang.String query) |
boolean |
onSuggestionClick(int position) |
boolean |
onSuggestionSelect(int position) |
public static final java.lang.String CLOUD_SEARCH_QUEREY_TEXT
public SearchSuggestionListener(android.widget.SearchView searchview)
public SearchSuggestionListener(android.widget.SearchView searchview, android.content.Context context)
public SearchSuggestionListener(android.widget.SearchView searchview, SearchSuggestionListener.SuggestionListenerCallback callback, android.content.Context context, boolean isChangeTextColor, int idColorResource)
public SearchSuggestionListener(android.widget.SearchView searchview, SearchSuggestionListener.SuggestionListenerCallback callback)
public boolean onSuggestionSelect(int position)
onSuggestionSelect
in interface android.widget.SearchView.OnSuggestionListener
public boolean onSuggestionClick(int position)
onSuggestionClick
in interface android.widget.SearchView.OnSuggestionListener
public boolean onQueryTextSubmit(java.lang.String query)
onQueryTextSubmit
in interface android.widget.SearchView.OnQueryTextListener
public boolean onQueryTextChange(java.lang.String newText)
onQueryTextChange
in interface android.widget.SearchView.OnQueryTextListener
newText
- the new content of the query text field.public void hideProgressBar()