Is it possible to add icon in an xml menu (not menu2) ?

Former Member
Former Member

Here is my xml file.

<menu id="MainMenu">
<menu-item id="item_1" label="@Strings.menu_label_1" />
<menu-item id="item_2" label="@Strings.menu_label_2" />
<menu-item id="item_3" label="@Strings.menu_label_3" />
<menu-item id="item_4" label="@Strings.menu_label_4" />
</menu>

I tried to add icon="image.png" in a menu-item but I get an error.

Thank you in advance for your precious collaboration. 

  • You can only use icons with Menu2 and an IconMenuItem

  • If you are at ease with monkey C, you can create your own menus manager, it has some advantages

    1- you control the UI, I mean it will be same for all devices

    2- you can decide what you want, 1 or 2 lines per menus, optional icons, font size, title header, scroll indicator.

    3- implement it as a barrel, thus all your apps will extend your menu

    4- the use of your menu can be designed to me easy to use, more than using xml description.