I've used search view in my application. I wonder how to hide the keyboard when i hit the search button on the search view? I have to use the back button to view the results.
Here is a similar question: How to dismiss keyboard in Android SearchView?
@Override
public boolean onQueryTextSubmit(String query) {
// Do search.
searchView.clearFocus();
return true;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With