Android Question MenuItem2 not showing the icons

Alberto Michelis

Well-Known Member
Licensed User
Longtime User
This does not sows the icon

B4X:
  Activity.AddMenuItem2("Agregar Especie", "mnuAgregarEspecie", LoadBitmap(File.DirAssets, "ic_mas_especie.png"))
   Activity.AddMenuItem2("Agregar Efectivo", "mnuAgregarPesos", LoadBitmap(File.DirAssets, "ic_mas_pesos.png"))

Any Idea?
 

DonManfred

Expert
Licensed User
Longtime User
Any Idea?
No. As always you dont give enough informations.

Maybe make a screenshot of the problematic shown menu...
Maybe give us a small project which shows the problem (IDE File->Export as ZIP)

Maybe it is a problem of the Android Version you are using to compile?

All this we just can guess where the problem is.... Upload a small project and we can easily reproduce your problem. Or at least we can probably give congrete answers what the problem is.
 
Last edited:
Upvote 0

Alberto Michelis

Well-Known Member
Licensed User
Longtime User
No. As always you dont give enough informations.

Im not a child... Instead of it you can answer, that code works ok in any simple app, please provide an example.

Attached goes an example adding to the MyFirstApp example two menu items and theres no icons when you run the app.
Im testing with Android 4.4.2 in a Samsung Note 3
 

Attachments

  • NoIconOnMenu.zip
    9.1 KB · Views: 238
  • 2015-06-21-08-30-51[1].png
    2015-06-21-08-30-51[1].png
    125.6 KB · Views: 267
Upvote 0
Top