title: Method onTouchEvent not being called
body: <p>I'm having a problem that my method </p>
  
  <pre><code>@Override
  public boolean onTouchEvent(MotionEvent event) {
      return gestureDetector.onTouchEvent(event);
  }
  </code></pre>
  
  <p>is never called. Any ideas why is that so? I'm building a google's API 4.0.3 application, and I'm trying to enable swipes for my ViewFliper. However, it can't work because touch is never called.</p>
  
  <p>Code: </p>
  
  <pre><code> public class MainActivity extends SherlockMapActivity implements ActionBar.TabListener {
  </code></pre>
  
  <p>Thats the declaration of my activity. and to detect swipes i have implemented that:</p>
  
  <pre><code>    SimpleOnGestureListener simpleOnGestureListener = new SimpleOnGestureListener(){
  
      @Override
      public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,float velocityY) {
  
          float sensitvity = 50;
          if((e1.getX() - e2.getX()) &gt; sensitvity){
              SwipeLeft();
          }else if((e2.getX() - e1.getX()) &gt; sensitvity){
              SwipeRight();
          }
  
          return true;
      }
  
  };
  GestureDetector gestureDetector= new GestureDetector(simpleOnGestureListener);
  </code></pre>
  
  <p>Thank You.</p>
  
  <p><strong>edit:</strong></p>
  
  <p>main.xml:</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/main_view"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:orientation="horizontal" &gt;
  
  &lt;ViewFlipper
      android:id="@+id/ViewFlipper"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:background="#ffffff" &gt;
  
      &lt;include
          android:layout_height="match_parent"
          layout="@layout/mymain" /&gt;
  
      &lt;include layout="@layout/secondmain" /&gt;
      &lt;include layout="@layout/thirdmain" /&gt;
      &lt;include layout="@layout/fourthmain" /&gt;
  &lt;/ViewFlipper&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><strong>Edit2:</strong> all of my included layouts have scrollview implemented. Is it possible that scroll takes those events and handles them? And how to detect gestures if so?</p>