Android: Opening menu while SearchView is expanded makes other action view disappear
I am building a toolbar menu with a SearchView, an action view item, and other regular items.
I want the search icon to be always visible, so I use app:showAsAction="always"
.
I also had to use collapseActionView
, otherwise the search view would take the full width of the tool bar and push the other items, which is ugly.