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

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -