OnTouch event consumes click event and prevents execution in parent
Posted
by
Taig
on Stack Overflow
See other posts from Stack Overflow
or by Taig
Published on 2012-10-14T03:33:44Z
Indexed on
2012/10/14
3:36 UTC
Read the original article
Hit count: 262
I'm having a FrameLayout
that has an extended ImageView
(github) as a child. When I set an onClick()
-Event to the FrameLayout
it won't be triggered. The reason appears to be the onTouch()
method's return value.
If I set the ACTION_DOWN's return value to false the event is passed along properly - but then the Multitouch functionalities break. Also running performClick()
in the ACTION_UP event comes to nothing.
How to handle those events correctly?
© Stack Overflow or respective owner