Im using an action bar and adding a searchView to it. I have implemented the searchView.onCLoseListener but this does not seem to be getting invoked. Any suggestions ?
To get notified when the 'x' icon is clicked, I added an on click listener to the SearchView 'x' button.
Find the SearchView 'x' button by id and attach the OnClickListener:
mSearchView.findViewById(R.id.search_close_btn)
.setOnClickListener(this);
The view search_close_btn is present in the SearchView layout provided by the Android framework.