Android Question Costum List View 1.50 LongClick Event Missing?

BitsAndBytes

Active Member
Licensed User
I am using Costum List View 1.5. I add ItemClick Event from the Designer but how i can implement ItemLongClick Event?

Thank you :)
 
Last edited:

Beja

Expert
Licensed User
Longtime User
If the event is not exposed in designer the I doubt it work.. But just in case try to use it in code.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

imbault

Well-Known Member
Licensed User
Longtime User
Are you kidding?

Have a look on CustomListView.bas :

B4X:
Private Sub Panel_Click
    If SubExists(CallBack, EventName & "_ItemClick") Then
        Dim v As View
        v = Sender
        CallSub3(CallBack, EventName & "_ItemClick", v.Tag, items.Get(v.Tag))
    End If
End Sub
 
Upvote 0

eps

Expert
Licensed User
Longtime User
?

Use the keyboard!!

Type...

Sub <Space> <Space> it then asks you to press <Tab> then type Panel then LongClick

ETA : Then type the element name

OR : In the Designer select the Panel and then go to Tools and Generate Members... That should create a LongClick Sub for you
 
Upvote 0
Top