ActionBarSherlock
ActionBarSherlock copied to clipboard
Split Action Mode strange rendering
Hi, I noticed a strange behavior: rendering of split action mode depends on text that is rendered. Take a look on following 2 pictures. The first one is correct, but the second one has these "sticks" between action items in the wrong places.
The code for both is the same (it is copied from existing demo), the only difference is the displayed text (save-search-refresh in first and play-edit-delete in second). Android 2.3.4, ActionBarSherlock 4.4.0
Code:
public boolean onCreateActionMode(ActionMode mode, Menu menu) {
menu.add("Play").setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
menu.add("Edit").setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
menu.add("Delete").setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
return true;
}
Does it match the behavior on ICS?