There are certain doubts, but still, all of a sudden, this behavior is possible.
The bottom line: I have a FrameLayout ( from here ) with an onTouch event for zuming. There are several elements in this Frame that accept onClick and onLongClick events:
for (int i = 0; i < locations.size(); i++) { locations.get(i).getView().setOnClickListener(onPoleClick); locations.get(i).getView().setOnLongClickListener(onPoleLongClick); } if I put a listener on click - MyFrame.onTouch ceases to function and the field is not zooming. If I tidy up - accordingly, I sit without clicks, but with a magnifying field. If I put return false; in MyFrame.onTouch, it also stops working.
I tried to replace locations.get (i) .onClick with onTouch (MotionEvent.UP) - if return true click to Frame does not reach, if return false MotionEvent.UP does not work. MotionEvent.DOWN will not allow to process onLongClick ...
Fife and jug, in general. Maybe there is some way for onTouch to work “through” the clicks?