My question refers directly to this question. The answer to that question shows how one can create a ViewGroup
, embed it inside a WindowManager
, and allow the WindowManager
to catch MotionEvent
s through onTouchEvent(MotionEvent event)
. WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH
is the flag that allows this this ViewGroup
to receive MotionEvent
s. However, according to documentation, this flag
...will not receive the full down/move/up gesture
I want to know if there's a work-around or a way so that I can get all touch events including down, move, and up. A proof of concept is in the app Wave Launcher which uses the same concept but is able to receive more than just a single ACTION_OUTSIDE
event.