title: How to handle touch outside the view in Android?
body: <p>I've found implementation of <a href="https://code.google.com/p/romannurik-code/source/browse/misc/undobar" rel="noreferrer">"Undo Bar"</a> used in Gmail application for Android. "UndoBar" is basically a View that is displayed on top of the layout.</p>
  
  <p>Unfortunately it's not complete - it has no functionality of dismissing bar by touching screen outside the bar. </p>
  
  <p>I've implemented <code>FrameLayout</code> that overrides <code>onInterceptTouchEvent</code> to handle bar dismissing but touching Action Bar does nothing. </p>
  
  <p>Is there any way to handle such events from Action Bar?</p>
  
  <p>Below there is an Image with "UndoBar"shown. What I want to achieve to handle touch in Action bar represented by red dot.</p>
  
  <p><img src="https://i.stack.imgur.com/DuwNB.png" alt="enter image description here"></p>