MaterialSearchView icon indicating copy to clipboard operation
MaterialSearchView copied to clipboard

How to get text query?

Open wjsm93 opened this issue 8 years ago • 2 comments

How can i get the text on the input without submit? Or how can i submit with a Button in the layout?

wjsm93 avatar May 12 '17 17:05 wjsm93

I need this too. I think there should be these two methods:

String getSearchQuery() void submit()

prompteus avatar Jul 05 '17 12:07 prompteus

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)

matthewkrueger avatar Nov 14 '17 11:11 matthewkrueger