Scroll doesn't work in NestedScrollView when try to scroll from views with click events

前端 未结 4 1022
时光说笑
时光说笑 2020-12-24 07:19

I\'m using a NestedScrollView in a layout, and am attempting to use the new CoordinatorLayout from the design support library for CollapsingToolbarLayout.

My layout

4条回答
  •  清酒与你
    2020-12-24 07:45

    One of your ScrollViews will send all events to the first View that answer true on dispatchMotionEvent.

    You may avoid using such scenario in your app OR override all dispatchMotionEvent methods (from scrolls and Views) to not consume the ACTION_DOWN.

提交回复
热议问题