title: Android - combine swipe and pinch-to-zoom
body: <ul>
  <li>We have the <a href="http://developer.android.com/reference/android/widget/Gallery.html" rel="noreferrer">Gallery</a>, which support swiping.</li>
  <li>We also have 3rd-party components that support pinch-to-zoom on ImageView, such as <a href="https://github.com/sephiroth74/ImageViewZoom/blob/master/ImageViewTouch/src/it/sephiroth/android/library/imagezoom/ImageViewTouch.java" rel="noreferrer">ImageViewTouch</a> in <a href="https://github.com/sephiroth74/ImageViewZoom" rel="noreferrer">ImageViewZoom</a>.</li>
  </ul>
  
  <p><strong>Now I would like to combine them both.</strong></p>
  
  <p>The problem is that the swipe events get consumed by the <a href="https://github.com/sephiroth74/ImageViewZoom/blob/master/ImageViewTouch/src/it/sephiroth/android/library/imagezoom/ImageViewTouch.java" rel="noreferrer">ImageViewTouch</a> and missed by the Gallery.</p>
  
  <p><strong>How can consume events by both components?</strong></p>
  
  <p>That would solve my problem, because, eventually, after a few events, each component will know how to react accordingly.
  For example, if the first event is <a href="http://developer.android.com/reference/android/view/MotionEvent.html#ACTION_DOWN" rel="noreferrer">ACTION_DOWN</a>, it can be part of a pinch-to-zoom or part of a swipe. Both components (Gallery and ImageViewTouch) should consume it in order to know what to do in following events.</p>