I have a searchView in the ActionBar. I want to dismiss the keyboard when the user is done with input. I have the following queryTextListener on the searchView
Simple, straight to the point and clean:
@Override public boolean onQueryTextSubmit(String query) { // your search methods searchView.clearFocus(); return true; }