title: Consuming touch event prevents me from detecting future events
body: <p>I have a problem with my app : I have a FrameLayout with a Fragment which contains a map from the Google Maps Android APi (v2), and a customized view which I use to display various buttons on top of the map.</p>
  
  <p>I'd like some of these elements not to be shown while the map is being moved, for this I use the onTouchEvent() function of the View :</p>
  
  <pre><code>@Override
  public boolean onTouchEvent(MotionEvent event) {
      switch (event.getActionMasked()) {
      case MotionEvent.ACTION_DOWN:
          pressed = true;
          invalidate();
          break;
  
      case MotionEvent.ACTION_UP:
  
          pressed = false;
          invalidate();
          break;
      }
      return false;
  }
  </code></pre>
  
  <p>The onDraw() function only displays the elements drawn over the map if <code>pressed == false;</code></p>
  
  <p>Now, my problem is in the return : if I put false, I say the event wasn't consumed, and the Android OS no longer notifies me when touch events are recorded, thus the MotionEvent.ACTION_UP isn't detected and the buttons stay hidden. If I put true, the touch events are no longer detected this time by the GoogleMap object, and I can't move the map around. Is there a way to keep detecting all future touch events, while not consuming the first event ?</p>