title: onTouchListener in RecyclerView in ViewPager
body: <p>i'm using RecyclerView inside of SwipeRefreshLayout which is inside of ViewPager... it happened that i need to detect 2 tap events on each item, so i set onTouchListener like:</p>
  
  <pre><code>holder.itemView.setOnTouchListener(new View.OnTouchListener() {
          @Override
          public boolean onTouch(View v, MotionEvent event) {
              GestureListener gestureListener = new GestureListener(...);
              GestureDetector gestureDetector = new GestureDetector(context, gestureListener);
              gestureDetector.onTouchEvent(event);
              return true;
          }
      });
  </code></pre>
  
  <p>GestureListener class itself is:</p>
  
  <pre><code>private class GestureListener extends GestureDetector.SimpleOnGestureListener {
  
      GestureListener(...) {
          // Handle data
      }
  
      @Override
      public boolean onSingleTapConfirmed(MotionEvent e) {
          Toast.makeText(context, "1 tap", Toast.LENGTH_SHORT).show();
          return true;
      }
  
      @Override
      public boolean onDoubleTap(MotionEvent e) {
          Toast.makeText(context, "2 tap", Toast.LENGTH_SHORT).show();
          return true;
      }
  }
  </code></pre>
  
  <p>but those above does not work... i tried focusable="true" then "false" then clickable="true" and false, but none of it works.... i don't know if the problem is that recycle view itself is located in so many touch related views... so how can i make double tap work?</p>