ActionBarSherlock icon indicating copy to clipboard operation
ActionBarSherlock copied to clipboard

Split Action Mode strange rendering

Open 40rn05lyv opened this issue 11 years ago • 1 comments

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. Drawing Drawing

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;
    }

40rn05lyv avatar Aug 02 '13 08:08 40rn05lyv

Does it match the behavior on ICS?

SimonVT avatar Aug 02 '13 13:08 SimonVT