title: Single and Double Tap on recycleview
body: <p>I have a problem with my code, when i do a single or double tap on item both onDoubleTap and onSingleTapConfirmed are actived while i dont have problem with onLongClick.</p>
  
  <p>In my activity:</p>
  
  <pre><code>mRecyclerView.addOnItemTouchListener(new RecyclerTouchListener(getContext(), mRecyclerView, new RecyclerTouchListener.ClickListener() {
              @Override
              public void onSingleTapConfirmed(View view, int position) {}
              @Override
              public void onDoubleTap(View view, int position){}
              @Override
              public void onLongClick(View view, int position) {}
          }));
  </code></pre>
  
  <p>In my custom listener class:</p>
  
  <pre><code>public class RecyclerTouchListener implements recyclerView.OnItemTouchListener{
      private GestureDetector gestureDetector;
      private ClickListener clickListener;
  
      public RecyclerTouchListener(Context context, final RecyclerView recyclerView, final ClickListener clickListener) {
          this.clickListener = clickListener;
          gestureDetector = new GestureDetector(context, new GestureDetector.SimpleOnGestureListener() {
              @Override
              public boolean onSingleTapConfirmed(MotionEvent e) {
                  return true;
              }
  
              @Override
              public void onLongPress(MotionEvent e) {
                  View child = recyclerView.findChildViewUnder(e.getX(), e.getY());
                  if (child != null &amp;&amp; clickListener != null) {
                      clickListener.onLongClick(child, recyclerView.getChildPosition(child));
                  }
              }
              @Override
              public boolean onDoubleTap(MotionEvent e) {
  
                  return true;
              }
          });
      }
  
      @Override
      public boolean onInterceptTouchEvent(RecyclerView rv, MotionEvent e) {
  
          View child = rv.findChildViewUnder(e.getX(), e.getY());
          if (child != null &amp;&amp; clickListener != null &amp;&amp; gestureDetector.onTouchEvent(e)) {
              clickListener.onSingleTapConfirmed(child, rv.getChildPosition(child));
          }
          return false;
      }
      public interface ClickListener {
          void onSingleTapConfirmed(View view, int position);
          void onDoubleTap(View view, int position);
          void onLongClick(View view, int position);
      }}
  </code></pre>