title: How to detect SingleTap on onInterceptTouchEvent(MotionEvent)?
body: <p>I want to let the ListView intercept all the events, except the SingleTap. </p>
  
  <p>First I did the code bellow</p>
  
  <pre><code>  private float startX;
      private float startY;
  
      @Override
      public boolean onInterceptTouchEvent(MotionEvent event) {
           if (event.getAction() == MotionEvent.ACTION_DOWN ) {
               Log.d("intercept", "down");
              startX = event.getX();
              startY = event.getY();
  
  
          }
          if (event.getAction() == MotionEvent.ACTION_UP) {
               Log.d("intercept", "up");
              float deltaX = Math.abs(event.getX() - startX);
              float deltaY = Math.abs(event.getY() - startY);
              if(deltaX&lt;5 &amp;&amp; deltaY&lt;5){
  
                  return false;
              }
  
          }
  
         return super.onInterceptTouchEvent(event);
      }
  </code></pre>
  
  <p>With that I was able to see that I really detect the singleTap (<code>intercept-down</code> and <code>intercep-up</code> on LogCat), but it block my list to handle other moves.
  After that I change <code>return super.onInterceptTouchEvent(event);</code> to <code>return true</code> and it works for the rest of the moves. The problem is that I was not able anymor to detect the singleTap now.
  I can see that <code>intercept-down</code> on Logcat, but not <code>intercept-up</code>. 
  I already tried this another code withou sucess too.</p>
  
  <pre><code>import android.content.Context;
  import android.support.v4.view.GestureDetectorCompat;
  import android.util.AttributeSet;
  import android.util.Log;
  import android.view.GestureDetector;
  import android.view.MotionEvent;
  import android.widget.ListView;
  
  
  public class SwipeListView extends ListView  {
      Context context;
      private GestureDetectorCompat mDetector;
      public SwipeListView(Context context) {
          super(context);
      }
  
      public SwipeListView(Context context, AttributeSet attrs) {
          super(context, attrs);
      }
  
      public SwipeListView(Context context, AttributeSet attrs, int defStyle) {
          super(context, attrs, defStyle);
      }
  
      public void setContext(Context context){
          this.context= context;
          mDetector = new GestureDetectorCompat(context, new MyGestureListener());
      }
  
      @Override
      public boolean onInterceptTouchEvent(MotionEvent event) {
          return !onTouchEvent(event);
      }
      @Override
      public boolean onTouchEvent(MotionEvent e) {
          return mDetector.onTouchEvent(e);
      }
  
      class MyGestureListener extends GestureDetector.SimpleOnGestureListener {
          private static final String DEBUG_TAG = "Gestures";
  
          @Override
          public boolean onDown(MotionEvent event) {
              Log.e(DEBUG_TAG,"onDown: " + event.toString());
              return true;
          }
  
          @Override
          public boolean onSingleTapConfirmed(MotionEvent event) {
              Log.e(DEBUG_TAG, "onSingleTap: " + event.toString());
              return true;
          }
      }
  }
  </code></pre>
  
  <p>Anyone could help me to detect the singleTap correctly?</p>