onInterceptTouchEvent, onTouchEvent only see ACTION_DOWN

后端 未结 4 1141
春和景丽
春和景丽 2021-01-18 11:56

I have a top level ViewGroup, which I call SliderView, in which I want to detect swiping. This is mostly working, but one weird failure persists.

The essence of Sli

4条回答
  •  迷失自我
    2021-01-18 12:19

    Due to the answer of user123321 here

    onInterceptTouchEvent only get called if the parent has a child view which returns "true" from onTouchEvent. Once the child returns true, the parent now has a chance to intercept that event

提交回复
热议问题