Shouldn't it be ACTION_UP?
If you keep pressing the view (without releasing) you will get a bunch of
ACTION_DOWN, AFAIK.

On Tue, Jul 20, 2010 at 10:38 PM, Joseph Earl <[email protected]>wrote:

> When you first detect a MotionEvent with an ACTION_DOWN action record
> the time.
> Then if you receive 2 more of these events within a specified time it
> is a triple tap.
>
> On Jul 20, 9:33 pm, Joseph Earl <[email protected]> wrote:
> > Either:
> > 1) Override the onTouch event in your custom view class (if you have
> > one) or
> > 2) Use the setOnTouchListener method of your view to set your own
> > Touch Listener.
> >
> > Take a look at the Handling UI events:
> http://www.google.co.uk/url?sa=t&source=web&cd=1&ved=0CBUQFjAA&url=ht...
> > and the View.onTouchListenerhttp://
> developer.android.com/reference/android/view/View.OnTouchListe...
> >
> > On Jul 20, 7:21 pm, Rohit Ghatol <[email protected]> wrote:
> >
> > > Hi All,
> > > I haven't spend much time on Gesture Detector or anything of that
> > > sort.
> >
> > > My requirement is very simple, Given a View (any view), how do I
> > > detect triple tap on that?
> >
> > > Of course a timer and a counter can help me, but I am looking for
> > > something more sophisticated that that.
> >
> > > For people, you are wondering, why I need triple tap, I am introducing
> > > a hack screen in an application (which I am porting from IPhone and
> > > IPhone does it that way, so I have to do it :))
> > > Cheers,
> > > Rohit
>
> --
> 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
>



-- 
YuviDroid
Check out Launch-X <http://android.yuvalsharon.net/launchx.php> (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

-- 
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

Reply via email to