I have a custom Android view that overrides onTouchEvent (MotionEvent) to handle horizontal scrolling of content in a view. However, when the ScrollView in which it is contained scrolls vertically, the user view stops receiving touch events. Ideally, I want the custom view to continue to receive events so that it can handle its own horizontal scrolling, while the containing hierarchy of views deals with vertical scrolling.
Is there a way to continue receiving these motion events while scrolling? If not, is there any other way to get the touch events that I need?
source share