参考文章: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)