Android Question Detecting Touch and slide

stevenindon

Active Member
Licensed User
Hello All,

I overlay a panel on top of my design to detect user's touch. But i find that panel touch event do not have slide (Left or Right). Instead of using a panel, what else can i use to detect slide? I have seen Gesture Detector library (For B4A only)... which is not suitable for me as i am doing a cross platform app (Android and IOS)

Thanks
 

stevenindon

Active Member
Licensed User
Thank you and already found the solution.

Added user click function :
B4X:
   Select Action
      Case Activity.ACTION_DOWN
         StartX = X
      Case Activity.ACTION_UP
        If Abs(X - StartX) > MOVEMENT_THRESHOLD Then
           Swipe(X < StartX)
        else if StartX=X
            log("User just CLick only!")
        end if
   End Select
 
Upvote 0
Top