I developed my own layout that extends ViewGroup. Now I want to use it in my work. In my work, I have both this layout and the viewer inside the frame. My custom layout fills my frame layout and is above my viewPager.
I would like to be able to handle click events on my own layout and allow all other movements to go to the viewer so that it can still scroll.
I have not done it yet. Either I have a click, but the viewer can no longer scroll, or vice versa. I overridden onTouchEvent and onInterceptTouchEvent.
What I notice is that I get the down event correctly on my custom layout, but as soon as it is caught by the viewer, I never get up. How can I communicate between neighbor views for touch events?
PS: I tried splitMotionEvent to no avail
source share