Is there a way to trace the dispatching of a MotionEvent
through the view hierarchy?
I have a case where I'm clearly tapping within the rectangle of a TextView
(evident when I enable my device setting for: developer options - pointer location) but the TextView
doesn't always consume the event.
Sometimes when I tap over the TextView
, the event is consumed. Sometimes it apparently is not consumed because some other view receives it and acts on it (resulting in wrong behavior of my app).
I'm hoping to find a way to see if the TextView
is, indeed, receiving the event. If not, then I probably have a bug in my code. If it is, then why is TextView
not consuming it?
Anyone know how to trace which views see the event via onInterceptTouchEvent()
or onTouchEvent()
?
Thanks.