Good day.
I create a dynamic menu

MenuItem menuItem = menu.add(0, DISLIKE, 0, slike).setIcon(R.drawable.ic_action_bad); MenuItemCompat.setShowAsAction(menuItem, MenuItemCompat.SHOW_AS_ACTION_ALWAYS | MenuItemCompat.SHOW_AS_ACTION_WITH_TEXT); 

The problem is that the text is not always displayed ─ I found in the open spaces of the bourgeois neta

Text is only shown in certain configurations (eg in landscape, or on tablets). This is not a bug.

only in practice it turns out that on the same device, without changing the orientation of the screen, the text is displayed, then no.

  • Try calling menu invalidate? - Ruslan A

0