title: WebView with swipe Gesture
body: <p>I have a page with its first part containing animations. when the user swipes, the animation goes and a webview appears. On swipe up, the webview goes and the animations again appears. since the webview was consuming the touch, I am overriding the webview touch and passing it to gesturedetector object. But what I really want is the control to be switched between webview and the gesturedetector. For now the gesturedetector works or the webview works but it doesnt work together. Any help?</p>
  
  <p>This is what I am doing now:</p>
  
  <pre><code>    webView.setOnTouchListener(new View.OnTouchListener() {
  
          @Override
          public boolean onTouch(View v, MotionEvent event) {
              // TODO Auto-generated method stub
  
              return gestureDetector.onTouchEvent(event);
              // return false;
  
          }
      });
  </code></pre>
  
  <p>The gesture detector handles the swiping between animations and webview:</p>
  
  <pre><code>    gestureDetector = new GestureDetector(getActivity(),
              new GestureDetector.SimpleOnGestureListener() {
                  /* Function to pause the video on tap */
                  @Override
                  public boolean onSingleTapConfirmed(MotionEvent e) {
                      /* On Touch event pressed play and pause the videoplayer */
                      return true;
                  }
  
                  /*
                   * OnDown() has to return true for the fling methof to take
                   * place
                   */
                  @Override
                  public boolean onDown(MotionEvent e) {
                      return true;
                  }
  
                  @Override
                  public boolean onFling(MotionEvent e1, MotionEvent e2,
                          float velocityX, float velocityY) {
  </code></pre>