one way around it would be just to use some kind of flag to signal that you don’t want to handle the event in the beginning of the block, like follows:
In my case a can not use a flag because i have also to receive the events from the LayoutClickListener,
the case is a layout that contains one or more layout that contain one image when a click is done on the image than i need to intercept the click , when the click is done outside the images area but on the layout area then i need to intercept the click on the layout.
May be i can use a flag but just to identify that the of the event is from the image element and reset it after the event is managed on the layout trigger.