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 ?
Ok. i got the mistake. We cant add a searchCommand and do
setShowAsAction(MenuItem.SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW)
Doing this would remove the searchText if any and hence we cant do a onClose().