Thursday, August 22, 2013

[android-developers] Detect a gesture startet from the outside of a view

Hi there :)

I have two ImageViews in my app.
I've added a gesture detector (GestureOverlayView), and added gestures to the app by using android's sample, which record gestures and save them to a file, and I then load this file.

My Goal is to limit the gestures area.. I want them to start from one ImageView, and end on the other.
I didn't find anything on google!! : /

I've added OnTouch listener to both images, but I don't know how to detect a gesture coming from the outside of a View.

I can detect a gesture starts from one Image ("Down" event), but when my finger goes over the second and then go up, the event triggered is "Cancel" on the first image

Please Help

Thanks,
Oron

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate