There was a lot of discussion on the web re how to collapse SearchView and hide the keyboard. I ended up using:
searchView.setQuery("", false); searchView.clearFocus(); searchView.setIconified(true);
which seems a bit opaque but worked. I tried searchItem.collapseActionView(), but this didn’t appear to do anything. Is there a preferred method?