title: Android code to apply same double tap touch listener on two or more different custom views
body: <p>How to apply same double tap touch listener on two or more different custom views?</p>
  
  <pre><code>view1.setOnTouchListener(new View.OnTouchListener() {
      @Override
      public boolean onTouch(View v, MotionEvent event) {
          return mGestureDetector.onTouchEvent(event);
      }
  });
  view2.setOnTouchListener(new View.OnTouchListener() {
      @Override
      public boolean onTouch(View v, MotionEvent event) {
          return mGestureDetector.onTouchEvent(event);
      }
  });
  mGestureDetector = new GestureDetector(new GestureDetector.SimpleOnGestureListener() {
      @Override
      public void onLongPress(MotionEvent e) 
      {
          displayPTZControlsPopup(corresponding view id); 
      }
  
      @Override
      public boolean onDoubleTap(MotionEvent e) 
      {
          Intent intent = new Intent(VideoView.this,FullScreenVideo.class);
          startActivity(intent);
          return true;
      }
  
      @Override
      public boolean onDown(MotionEvent e) 
      {
          return true;
      }
  });
  mGestureDetector.setIsLongpressEnabled(true);
  </code></pre>
  
  <p>can anyone help me?</p>