manually cloase searchview code example Example: close searchview android java if (!searchView.isIconified()) { searchView.setIconified(true); }