Android Question Activity.AddMenuItem2 not showing icon

Discussion in 'Android Questions' started by Devv, Jun 12, 2015.

  1. Devv

    Devv Active Member Licensed User

    this is what i tried

    Code:
    Sub Activity_Create(FirstTime As Boolean)
        
    'Do not forget to load the layout file created with the visual designer. For example:
        Activity.AddMenuItem2("test","test",LoadBitmap(File.DirAssets,"test.png"))
    End Sub

    the project
     

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    Icons in the overflow menu are not visible in Android 4 theme. You need to use AddMenuItem3 and add them to the action bar.
     
  3. Devv

    Devv Active Member Licensed User

    i dont use the activity bar, this is what my project use:
    #IncludeTitle: false
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    In that case you can use a library such as AHQuickAction to create a nice menu.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice