vbmundo Well-Known Member Licensed User Aug 7, 2016 #1 Hi, I have 2 icons added in Files folder and Added in the Layout But when I run this lines B4X: Activity.AddMenuItem2("Save","Grabar",LoadBitmap(File.DirAssets,"diskette_icon.jpg")) Activity.AddMenuItem2("Delete","Borrar",LoadBitmap(File.DirAssets,"delete.png")) I don't receive any error. When I open the Activity menu no icons appears. What's wrong ? Regards
Hi, I have 2 icons added in Files folder and Added in the Layout But when I run this lines B4X: Activity.AddMenuItem2("Save","Grabar",LoadBitmap(File.DirAssets,"diskette_icon.jpg")) Activity.AddMenuItem2("Delete","Borrar",LoadBitmap(File.DirAssets,"delete.png")) I don't receive any error. When I open the Activity menu no icons appears. What's wrong ? Regards
corwin42 Expert Licensed User Longtime User Aug 8, 2016 #2 The option menu does not have icons in Android (>3.x). The icons are only used if the items are shown as action items. Upvote 0
The option menu does not have icons in Android (>3.x). The icons are only used if the items are shown as action items.
Erel B4X founder Staff member Licensed User Longtime User Aug 8, 2016 #3 Example: B4X: Activity.AddMenuItem3("Save","Grabar",LoadBitmap(File.DirAssets,"diskette_icon.jpg"), True) Upvote 0
Example: B4X: Activity.AddMenuItem3("Save","Grabar",LoadBitmap(File.DirAssets,"diskette_icon.jpg"), True)
vbmundo Well-Known Member Licensed User Aug 8, 2016 #4 thanks Corwin and Erel !! I will try the Erel recomendation Upvote 0