CustomListView combined with AHQuickAction

thewavemaster

Member
Licensed User
Longtime User
Hello!

I want to combine a CustomListView Control with AHQuickAction.
So if the user clicks on a Item in the CLV the PopupMenue of AHQuickAction should be shown at the Position of the CLV.

How can I made this?

My trys (which didnt succeed):
B4X:
Sub GetViewAtPos(LV As ListView, Position As Int) As View
    Dim r As Reflector
    Dim v As View
    r.Target = LV
    Dim first As Int
    first = r.RunMethod("getFirstVisiblePosition")
    v = r.RunMethod2("getChildAt", Position - first, "java.lang.int")
    Return v
End Sub

And

B4X:
Sub clv1_ItemClick (Index As Int, Value As Object)


ac2.Show(GetViewAtPos(Sender, Index))


End Sub
 
Top