I\'m trying to add support for the SearchView in the Android 3.0+ ActionBar, but I can\'t get the OnCloseListener to work.
Here\'s my code:
It's a workaround but has worked for me
  searchView.setOnQueryTextListener(new android.widget.SearchView.OnQueryTextListener() {
                String lastText;
                @Override
                public boolean onQueryTextChange(final String newText) {
                    if (lastText != null && lastText.length() > 1 && newText.isEmpty()) {
                        // close ctn clicked
                        return true;
                    }
}