try with this, works for me using appCompat v21
final MenuItem switchButton = menu.findItem(R.id.action_import);
final MenuItem searchItem = menu.findItem(R.id.action_search);
MenuItemCompat.setShowAsAction(searchItem, MenuItemCompat.SHOW_AS_ACTION_ALWAYS);
MenuItemCompat.setShowAsAction(switchButton, MenuItemCompat.SHOW_AS_ACTION_ALWAYS);
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.