OK, this question has been asked many times and I have looked through many topics about it but I can not get it to work.
My searchView
is not on the actionBar so I can't use collapseActionView()
I have tried
searchView.clearFocus();//this closes the keyboard but does not remove focus
getActivity().getCurrentFocus().clearFocus(); //basically the same as above
searchView.setQuery("", false); //this clears the query and drops the keyboard
searchView.setIconified(true); // but the search retains focus and keyboard pops up again
No matter what I try I can not remove the focus from the searchView
after it has been selected