Android: How to disable ScrollView vertical scrolling while scrolling HorizontalScrollView?

I am developing an Android application with Activity with ScrollView, which contains, among other things, HorizontalScrollView. When I touch HorizontalScrollView, I want to disable the vertical scrolling of the external ScrollView. How do I achieve this?

Thanks Marcus

+3
source share
1 answer

Take a look

public boolean onInterceptTouchEvent(MotionEvent ev) { }

From the ScrollView classes.

+2
source

Source: https://habr.com/ru/post/1787115/


All Articles