Hi All,
I have an icon on menu bar added with the code below:
What I am after, is that when this icon is pressed, a drop down menu is opened so I can have number of selections.
I have tried to use droppy library https://www.b4x.com/android/forum/threads/droppy-dropdown-menu.81918/
But I am not sure how to use it with an icon on menu, since droppy is expecting to receive Anchor as view.
So anyone can help directing me on how can I add the drop down to a menu icon?
I have researched the forum but couldn't find an answer or example for that.
Thank you for your help!
I have an icon on menu bar added with the code below:
B4X:
Dim mi As B4AMenuItem
mi = B4XPages.AddMenuItem(Me,"Lang")
mi.AddToBar = True
mi.Bitmap = xui.LoadBitmapResize(File.DirAssets, "lang.png", 70dip, 70dip, True)
What I am after, is that when this icon is pressed, a drop down menu is opened so I can have number of selections.
I have tried to use droppy library https://www.b4x.com/android/forum/threads/droppy-dropdown-menu.81918/
But I am not sure how to use it with an icon on menu, since droppy is expecting to receive Anchor as view.
So anyone can help directing me on how can I add the drop down to a menu icon?
I have researched the forum but couldn't find an answer or example for that.
Thank you for your help!