B4X:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Screenresol")
DropMenu.Initialize("AC")
For i = 1 To 7
Dim ai As AHActionItem
Dim bd As BitmapDrawable
Dim Filename, Text As String
Select i
Case 1
Text = "Prev"
Case 2
'Filename = "menu_down_arrow.png"
Text = "Next"
Case 3
' Filename = "menu_info.png"
Text = "Info"
Case 4
' Filename = "menu_eraser.png"
Text = "Delete"
Case 5
' Filename = "menu_search.png"
Text = "Search"
Case 6
' Filename = "menu_cancel.png"
Text = "Cancel"
Case 7
' Filename = "menu_ok.png"
Text = "Ok"
End Select
'Initialize a bitmap drawable and the action item
'bd.Initialize(LoadBitmap(File.DirAssets, Filename))
ai.Initialize(i, Text, bd)
ai.Selected = True
'Add the item to both Quickactions popups
DropMenu.AddActionItem(ai)
Next
End Sub
Sub Button2_click
DropMenu.Show(Sender)
End Sub
I'm trying to make a button upon pressed showing a menu which drops, like you can see in most apps when pressing the three points underneath eachother. But I can't seem to get it working with AHQuickActions