Android Question Activity.AddMenuItem2 not showing icon

Devv

Active Member
Licensed User
Longtime User
this is what i tried

B4X:
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
 

Attachments

  • icon test.zip
    12.6 KB · Views: 258

Devv

Active Member
Licensed User
Longtime 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.
i dont use the activity bar, this is what my project use:
#IncludeTitle: false
 
Upvote 0
Top