I registered it by the manual, and the icons in the toolbar are grouped and hidden, here is the menu code:

<?xml version="1.0" encoding="utf-8"?> 

 <item android:id="@+id/robobet_calendar_text" android:title="дата" android:showAsAction="always" /> <item android:id="@+id/robobet_calendar" android:title="календарь" android:icon="@drawable/white_calendar_default" android:showAsAction="always"/> 

but the screen

enter image description here

  • Do they have enough space? What happens to them when the screen orientation changes? - post_zeew
  • Yes, when I leave one calendar, he is also alone in the group - Taras Zhupnik

1 answer 1

Add the namespace app to xml:

 <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"> <item android:id="@+id/robobet_calendar_text" android:title="дата" app:showAsAction="always" /> <item android:id="@+id/robobet_calendar" android:title="календарь" android:icon="@drawable/white_calendar_default" app:showAsAction="always"/> </menu> 
  • Thank you, it's time to go to sleep)))). Missed xmlns: app .... - Taras Zhupnik