MaterialSearchView
MaterialSearchView copied to clipboard
How to get text query?
How can i get the text on the input without submit? Or how can i submit with a Button in the layout?
I need this too. I think there should be these two methods:
String getSearchQuery()
void submit()
I need this too - however, it can be done on your own.
Register an onQueryTextChange listener, and in that method, save the search term to a variable.
If you need to submit with your own button, just call:
materialSearchView.setQuery(savedQueryString, true)