title: OnTouchListener intercept when touch goes outside view
body: <p>I have an ImageView that represent a button, and a relative OnTouchListener for change image inside it (for simulate pression on it) and launch a task:</p>
  
  <pre><code>@Override
  public boolean onTouch(View v, MotionEvent event) {
      ImageView button = (ImageView) v;
  
      switch (event.getAction()) {
      case MotionEvent.ACTION_DOWN: {
          //change imageview image with pressed button
          return true;
  
      }
      case MotionEvent.ACTION_UP: {
              //change imageview image, and do a task
              return true;
      }
  
      }
      return false;
  }
  </code></pre>
  
  <p>Now this two events are not sufficient for my scope. I would that, if user keep finger pressed on ImageView AND swipe outside it, task inside ACTION_UP will not executed. 
  How can i do it?</p>