I'm converting my b4a app in b4i. I have a line where I use GestureDetector for activate a LongPress event. Now I need to convert this method in b4i. but b4i don't have it. I have a Scrollview that include any line of Label. If longclick on this label I have to run a functions.
What is the right way to follow?
I used the following code for "drag"
If use this for longClick (Case 0) then Case 0 run the Case 1 ('up') but this it is a problem for my use.
What is the right way to follow?
I used the following code for "drag"
B4X:
Sub myScrollView_Touch(Action As Int, X As Float, Y As Float)
Select Action
Case 0 ' down
Case 1 ' Up
Case 2 ' move / drag
End Sub
If use this for longClick (Case 0) then Case 0 run the Case 1 ('up') but this it is a problem for my use.