Great, I did exactly the same for Click. I set a timer and recorded how many times the user clicked and when the timer is out, I reset the count.
:) On Jul 21, 1:38 am, Joseph Earl <joseph.w.e...@gmail.com> 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 <joseph.w.e...@gmail.com> 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 <rohitsgha...@gmail.com> 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en