ACTION_CANCEL lets you consume the current touch event stream until the next up.
I would highly recommend that you not do this yourself, but use the APIs on ViewGroup for intercepting touch events that will take care of these details for you and ensure that the correct event flow occurs. On Tue, Dec 29, 2009 at 10:04 AM, rahul <[email protected]> wrote: > Hi, > > I am suppressing the touch events depending upon the size in the > dispatchTouchEvent of View.java. If the event size is greater than the > threshhold i m sending the event as ACTION_CANCEL to onTouchEvent. I > wanted to know how ACTION_CANCEL works. In the android document it > says it cancel the current gesture. What is the meaning of gesture (is > it ACTION_DOWN plus something which can happen between ACTION_UP) or > is it individual event like ACTION_DOWN, ACTION_UP or ACTION_MOVE ? > > Thanks in advance. > > Rahul > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

