SimpleSearchView
SimpleSearchView copied to clipboard
How to persistence search text
with .setKeepQuery(true) add persistence last query, but is there any way to initialize the text to a specific value?
Hey, I found this
searchView.setQuery("set default text", false)
false: no submit result true: propagate submit result
This does not set the text for me, I do the following but it just gives me an empty search view:
if (queryText.isNotEmpty()) {
searchView.showSearch()
searchView.setQuery(queryText, false)
}