title: ViewPager swipe with 2 fingers
body: <p>I would to implement a ViewPager swipe with two fingers.
  I tried to implement a sublcass of ViewPager overriding the onTouchEvent and passing the method to superclass only if the touch is made by 2 fingers.
  But there is a problem: the swipe animation also works with 1 finger!
  I think I have to override some other method...</p>
  
  <p>This is my ViewPager class:</p>
  
  <pre><code>public class MyViewPager extends ViewPager{
  public MyViewPager(Context context) {
      super(context);
  }
  
  public MyViewPager(Context context,AttributeSet attributeSet) {
      super(context,attributeSet);
  }
  
  @Override
  public boolean onTouchEvent(MotionEvent ev) {
      int n = ev.getPointerCount(); //number of fingers
      if (n == 2)
          return super.onTouchEvent(ev);
      else return false;
  }
  }
  </code></pre>