Android: HorizontalScrollView inside ScrollView

前端 未结 6 1895
忘掉有多难
忘掉有多难 2021-02-05 12:46

I have multiple HorizontalScrollViews inside a ScrollView. Horizontal scroll isn\'t smooth at all. I have to scroll almost perfectly horizontal

6条回答
  •  春和景丽
    2021-02-05 13:06

    If you are using the horizontal scroll view solution from (http://www.dev-smart.com/archives/34) the solution for the cross focus problem between the scroll view and the list view is blocking the focus to the scroll view once you have focus on the list view.

    From a technical point of view you should add the following line to the onScroll function inside the HorizontalListView class.

    getParent().requestDisallowInterceptTouchEvent(true);
    

    Hope this helps.

提交回复
热议问题