searchview not closing correctly on FIRST back press (it's only loosing focus)
问题 I have to press the backbutton twice, to close the SearchView . Why? On the first press, the SearchView only looses focus... Setting setOnKeyListener on SearchView does not work either... Btw, I'm using the ABS implementation... My code is simple and looks like the following: mMenuItemSearch = menu.findItem(R.id.search); mSearchView = new SearchView(getSupportActionBar().getThemedContext()); mMenuItemSearch.setActionView(mSearchView); mSearchView.setOnQueryTextListener(new SearchView