Methods Summary |
---|
public static java.lang.CharSequence | getQuery(android.view.View searchView)
return ((SearchView) searchView).getQuery();
|
public static boolean | isIconified(android.view.View searchView)
return ((SearchView) searchView).isIconified();
|
public static boolean | isQueryRefinementEnabled(android.view.View searchView)
return ((SearchView) searchView).isQueryRefinementEnabled();
|
public static boolean | isSubmitButtonEnabled(android.view.View searchView)
return ((SearchView) searchView).isSubmitButtonEnabled();
|
public static java.lang.Object | newOnCloseListener(android.support.v4.widget.SearchViewCompatHoneycomb$OnCloseListenerCompatBridge listener)
return new OnCloseListener() {
@Override
public boolean onClose() {
return listener.onClose();
}
};
|
public static java.lang.Object | newOnQueryTextListener(android.support.v4.widget.SearchViewCompatHoneycomb$OnQueryTextListenerCompatBridge listener)
return new OnQueryTextListener() {
@Override
public boolean onQueryTextSubmit(String query) {
return listener.onQueryTextSubmit(query);
}
@Override
public boolean onQueryTextChange(String newText) {
return listener.onQueryTextChange(newText);
}
};
|
public static android.view.View | newSearchView(android.content.Context context)
return new SearchView(context);
|
public static void | setIconified(android.view.View searchView, boolean iconify)
((SearchView) searchView).setIconified(iconify);
|
public static void | setMaxWidth(android.view.View searchView, int maxpixels)
((SearchView) searchView).setMaxWidth(maxpixels);
|
public static void | setOnCloseListener(java.lang.Object searchView, java.lang.Object listener)
((SearchView) searchView).setOnCloseListener((OnCloseListener) listener);
|
public static void | setOnQueryTextListener(java.lang.Object searchView, java.lang.Object listener)
((SearchView) searchView).setOnQueryTextListener((OnQueryTextListener) listener);
|
public static void | setQuery(android.view.View searchView, java.lang.CharSequence query, boolean submit)
((SearchView) searchView).setQuery(query, submit);
|
public static void | setQueryHint(android.view.View searchView, java.lang.CharSequence hint)
((SearchView) searchView).setQueryHint(hint);
|
public static void | setQueryRefinementEnabled(android.view.View searchView, boolean enable)
((SearchView) searchView).setQueryRefinementEnabled(enable);
|
public static void | setSearchableInfo(android.view.View searchView, android.content.ComponentName searchableComponent)
SearchView sv = ((SearchView) searchView);
SearchManager searchManager = (SearchManager)
sv.getContext().getSystemService(Context.SEARCH_SERVICE);
sv.setSearchableInfo(searchManager.getSearchableInfo(searchableComponent));
|
public static void | setSubmitButtonEnabled(android.view.View searchView, boolean enabled)
((SearchView) searchView).setSubmitButtonEnabled(enabled);
|