How to handle touch outside the view in Android?
I've found implementation of "Undo Bar" used in Gmail application for Android. "UndoBar" is basically a View that is displayed on top of the layout. Unfortunately it's not complete - it has no functionality of dismissing bar by touching screen outside the bar. I've implemented FrameLayout that overrides onInterceptTouchEvent to handle bar dismissing but touching Action Bar does nothing. Is there any way to handle such events from Action Bar? Below there is an Image with "UndoBar"shown. What I want to achieve to handle touch in Action bar represented by red dot. Try to override