The question is published on by Tutorial Guruji team.
How can I programatically hide the list of suggestions that pops up up below the
There are times when I’d like the
SearchView to not be inconified and to not have focus. I can do this both using the
setIconified(false) and the
clearFocus() methods respectively, but if the
SearchView has any text in it, it will display the list of a search suggestions and I need to hide/suppress that.
Try to set an
OnQueryTextListener to your search view, and return
onQueryTextChange when you don’t want any suggestions to show up.