I want the icon beside the SearchView (the "cloud") stays visible even when the SearchView expands. This works properly for tablets but doesn't work in case of smaller devices like Nexus 5.
I have set the showAsAction="always"
for this menu item. Also, the SearchView has this attribute: showAsAction="ifRoom"
.
What I have done for a situation like this is using a toolbar in xml while setting the theme to be NO_ACTION_BAR. Then in the toolbar (in my layout.xml file) I put a RelativeLayout. Using the leftOf=@id/someButton you should be able to keep all the buttons visible at all times.
try with this, works for me using appCompat v21