Android Question MenuItem2 not showing the icons

Discussion in 'Android Questions' started by Alberto Michelis, Jun 20, 2015.

  1. Alberto Michelis

    Alberto Michelis Active Member Licensed User

    This does not sows the icon

    Code:
    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?
     
  2. DonManfred

    DonManfred Expert Licensed User

    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: Jun 21, 2015
    lemonisdead and RandomCoder like this.
  3. Alberto Michelis

    Alberto Michelis Active Member Licensed 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
     

    Attached Files:

  4. DonManfred

    DonManfred Expert Licensed User

    I can confirm this with your code.

    Have you seen the answer from erel here? The suggestion is to use a ActionBar
    will search for an ex
     
    lemonisdead likes this.
  5. picenainformatica

    picenainformatica Active Member Licensed User

    Your status says: male,14
     
  6. DonManfred

    DonManfred Expert Licensed User

    This is a nice one i think. See the PopupMenu Example...
     
    lemonisdead likes this.
  7. Alberto Michelis

    Alberto Michelis Active Member Licensed User

    Manfred... this is help! Thanks
     
Loading...