Explain touch event dispatch in a ViewGroup with a clickable child

It tests touch routing through the three key methods. A strong answer traces ACTION_DOWN from root to target, notes intercepting halts child delivery, and onTouchEvent true consumes while false bubbles up.
It tests your understanding of Android's touch pipeline and how return values steer events between a ViewGroup and its clickable child. A strong answer traces ACTION_DOWN via dispatchTouchEvent, the parent checking onInterceptTouchEvent before the child receives it, the child handling onTouchEvent, and how true claims the stream while false bubbles back. It notes that intercepting during ACTION_MOVE steals it mid-gesture. Red flag: stating onInterceptTouchEvent exists on View, or believing the parent always receives onTouchEvent first.
Read the original → developer.android.com
- #android
- #viewgroup
- #touchevents
- #dispatch
- #interview
Get five bites like this every day.
Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.