pop.Initialize("Droppy",Button1)
pop.addMenuItem("Test1").addMenuItem2("Test2","ic_add_alert_black_18dp").addMenuItem("Options").addclickcallback.addonDismissCallback.addSeparator.addMenuItem("Options1a").addMenuItem("Options1b").triggerOnAnchorClick(True).build
Sub Droppy_onClicked(view As Object, index As Int)
Log($"Droppy_onClicked(${view}, ${index})"$)
If view Is Button Then
Log("btn")
else if view Is Label Then
Log("lbl")
else if view Is DroppyMenuItemView Then
Dim item As DroppyMenuItemView = view
Log(item.ChildCount)
If item.ChildCount = 1 Then
If item.getChildAt(0) Is Label Then
Dim lbl As Label = item.getChildAt(0)
Log(lbl.Text)
End If
End If
End If
End Sub
Sub Droppy_onDismissed()
Log($"Droppy_onDismissed()"$)
End Sub