Android Question GestureDetector - ignores eventPrefix parameter?

Jimdriver2

Member
Licensed User
Longtime User
I'm using the superb GestureDetector library. The one problem I'm having is that I can only write code under events that start with the prefix Gesture_

I tried passing different eventPrefix values in the parameter when running the SetOnGestureListener method but it doesn't seem to like them and only responds to Gesture_

The problem is that it means all controls I want to have gestures for will run the same events. This is a problem as for just one of them I want to assign a long press event as well.

Is this a known issue that's been resolved in a new version or is there a known workaround?

Thanks.
 

jimmyF

Active Member
Licensed User
Longtime User
Not sure because I have not tried it myself but could you maybe use the "Sender" function here?
 
Upvote 0
Top