I am playing with B4A, just to start, but the real task is to write an App for both Android and IPhone.
So, I am using B4XPages. And, BTW, I am not sure this forum "Android questions" is the correct one for this question, but I didn't find another.
My problem is to put icons in the drop-down menu of the main activity of the App.
I can generate the menu, with something like this:
The icon does not show up. But if I use AddToBar=True, the item is added, with its icon, in the bar and not in the popup menu.
I also tried to use Activity.AddMenuItem2(...), but no menu is generated at all (I noticed that, during startup, sub Create_Menu() is called, and I presume that BX4Pages manages that).
True, I seem to have read something about "icons are no more available in activity menus" or something like that.
But if it is so, it seems strange to me that you can put an icon in the bar and not in the menu items.
Quite confused... so... can I have icons in the menu items, in app for both B4A and B4i? If yes, how? If not, what are the possibilities?
So, I am using B4XPages. And, BTW, I am not sure this forum "Android questions" is the correct one for this question, but I didn't find another.
My problem is to put icons in the drop-down menu of the main activity of the App.
I can generate the menu, with something like this:
B4X:
mi = B4XPages.AddMenuItem(Me, "Some menu caption")
mi.Bitmap = xui.LoadBitmapResize(File.DirAssets, "powermon.png", 80,80,False)
' mi.AddToBar = True
The icon does not show up. But if I use AddToBar=True, the item is added, with its icon, in the bar and not in the popup menu.
I also tried to use Activity.AddMenuItem2(...), but no menu is generated at all (I noticed that, during startup, sub Create_Menu() is called, and I presume that BX4Pages manages that).
True, I seem to have read something about "icons are no more available in activity menus" or something like that.
But if it is so, it seems strange to me that you can put an icon in the bar and not in the menu items.
Quite confused... so... can I have icons in the menu items, in app for both B4A and B4i? If yes, how? If not, what are the possibilities?