title: How to detect doubletap on a View?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/937313/android-basic-gesture-detection">Android - basic gesture detection</a>  </p>
  </blockquote>
  
  
  
  <p>I'm trying to have a View sensitive to double taps on an Android.  So far, I learned to set up the double tap and know what place to handle the event for action:<br>
  API: android.view.GestureDetector.OnDoubleTapListener</p>
  
  <pre><code>    private GestureDetector mGestureDetector;
      …
      mGestureDetector = new GestureDetector(this);
      …
      mGestureDetector.setOnDoubleTapListener(new MyDoubleTapListener());
      …
      private class MyDoubleTapListener implements GestureDetector.OnDoubleTapListener {
      public boolean onDoubleTapEvent(MotionEvent e) {                         
                                      return false;                      
      }
                      @Override
                      public boolean onDoubleTap(MotionEvent e) {
                                      // TODO Auto-generated method stub
                                      return false;
                      }
  
                      @Override
                      public boolean onSingleTapConfirmed(MotionEvent e) {
                                      // TODO Auto-generated method stub
                                      return false;
                      }
  }
  </code></pre>
  
  <p><br>
  But How do I link it to the View?  This is in a class that has a few View members.</p>
  
  <p>I'll really appreciate you helping me connect the dots!</p>