android - How to intercept all touch events and detect it's consumers -


how intercept touch events within activity, , detect event's consumer? simplifying let's assume have log events this: imageview -> onlongclick().

the actual problem detect event's consumer - intercept events can add overlay on top of activity view, or override dispatchtouchevent(motionevent) in activity, have no idea how detect consumer of such event.

if override dispatchtouchevent in activity ,that means event intercepted activity.

any view in activity not message because you've consumer .

i don't know why want , if wanna learn or ,you can read android view event .


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -