开发者

Need for ViewParent.disallowInterceptTouchEvent?

开发者 https://www.devze.com 2023-01-12 03:09 出处:网络
Views may at any time invoke disallowInterceptTouchEvent() which will prevent parent views from handling touch events. In short, what is the need for this API? I see that lists use it when a scroll is

Views may at any time invoke disallowInterceptTouchEvent() which will prevent parent views from handling touch events. In short, what is the need for this API? I see that lists use it when a scroll is initiated, but why? The list wou开发者_开发技巧ld still receive ACTION_CANCEL if a parent view intercepts the event, so why would it specifically want to block onInterceptTouchEvent on parent views?

0

精彩评论

暂无评论...
验证码 换一张
取 消