Is it possible to set the flags as suggested here android:showAsAction=\"ifRoom|withText\" programmatically?
android:showAsAction=\"ifRoom|withText\"
For each MenuItem, do the following:
MenuItem
myMenuItem.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM | MenuItem.SHOW_AS_ACTION_WITH_TEXT);