On what view do you have to intercept these events?
If it were a panel it would be like this
B4X:
Public Sub Panel_LongClick
End Sub
Public Sub Panel_Touch(Action As Int, X As Float, Y As Float)
Select Action
Case 0 ' down
Case 1 ' Up
Case 2 ' move / drag
End Select
End Sub
As I understand, a scrollview holds some child elements (for example, ImageView) and user can drag them.
The easiest solution is to add a panel, which will be a child of RootPanel with maximum z-order index (BringToFront) .
As I understand, a scrollview holds some child elements (for example, ImageView) and user can drag them.
The easiest solution is to add a panel, which will be a child of RootPanel with maximum z-order index (BringToFront) .
Probably, there is a reason to use native gesture recognizer. Not so simple, but not very difficult also.
I made a sample. An app detects swipe left/right and hides corresponding view.