I am using a search-view element in my fragment to implement search feature.
searchView.setIconified(false);