Relative Content

Tag Archive for androidkotlinandroid-viewpager2

Why Touch Event of child Fragments is getting propagated to the parent ViewPager2

(Above is hierarchical structure, Inner view is inside middile view, which is inside Outer View)
So this my understanding of touchEvents given there is no dispatchTouchEvent.
If there is touch event on InnerView if it does not consume it, it will get propagated to MiddleView and if it also does not consumes the event it propagate to outerView.