View touch事件处理

参考文章:https://www.jianshu.com/p/238d1b753e64

Touch 事件的堆栈

onTouch:31, MainActivity$1 (com.example.leetcodedemo)
dispatchTouchEvent:12628, View (android.view)
dispatchTransformedTouchEvent:3041, ViewGroup (android.view)
dispatchTouchEvent:2671, ViewGroup (android.view)
dispatchTransformedTouchEvent:3041, ViewGroup (android.view)
dispatchTouchEvent:2671, ViewGroup (android.view)
dispatchTransformedTouchEvent:3041, ViewGroup (android.view)
dispatchTouchEvent:2671, ViewGroup (android.view)
dispatchTransformedTouchEvent:3041, ViewGroup (android.view)
dispatchTouchEvent:2671, ViewGroup (android.view)
dispatchTransformedTouchEvent:3041, ViewGroup (android.view)
dispatchTouchEvent:2671, ViewGroup (android.view)
dispatchTransformedTouchEvent:3041, ViewGroup (android.view)
dispatchTouchEvent:2671, ViewGroup (android.view)
superDispatchTouchEvent:565, DecorView (com.android.internal.policy)
superDispatchTouchEvent:1929, PhoneWindow (com.android.internal.policy)
dispatchTouchEvent:3594, Activity (android.app)
dispatchTouchEvent:69, WindowCallbackWrapper (androidx.appcompat.view)
dispatchTouchEvent:514, DecorView (com.android.internal.policy)
dispatchPointerEvent:12877, View (android.view)
processPointerEvent:5771, ViewRootImpl$ViewPostImeInputStage (android.view)
onProcess:5535, ViewRootImpl$ViewPostImeInputStage (android.view)
deliver:4983, ViewRootImpl$InputStage (android.view)
onDeliverToNext:5036, ViewRootImpl$InputStage (android.view)
forward:5002, ViewRootImpl$InputStage (android.view)
forward:5157, ViewRootImpl$AsyncInputStage (android.view)
apply:5010, ViewRootImpl$InputStage (android.view)
apply:5214, ViewRootImpl$AsyncInputStage (android.view)
deliver:4983, ViewRootImpl$InputStage (android.view)
onDeliverToNext:5036, ViewRootImpl$InputStage (android.view)
forward:5002, ViewRootImpl$InputStage (android.view)
apply:5010, ViewRootImpl$InputStage (android.view)
deliver:4983, ViewRootImpl$InputStage (android.view)
deliverInputEvent:7803, ViewRootImpl (android.view)
doProcessInputEvents:7768, ViewRootImpl (android.view)
enqueueInputEvent:7726, ViewRootImpl (android.view)
onInputEvent:8007, ViewRootImpl$WindowInputEventReceiver (android.view)
dispatchInputEvent:202, InputEventReceiver (android.view)
nativePollOnce:-1, MessageQueue (android.os)
next:386, MessageQueue (android.os)
loop:175, Looper (android.os)
main:7625, ActivityThread (android.app)
invoke:-1, Method (java.lang.reflect)
run:524, RuntimeInit$MethodAndArgsCaller (com.android.internal.os)
main:987, ZygoteInit (com.android.internal.os)
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值