Interface DelegatedTouchEventViewGroup.Delegate

    • Method Detail

      • onInterceptTouchEvent

        boolean onInterceptTouchEvent​(android.view.MotionEvent ev,
                                      DelegatedTouchEventViewGroup source)
        Delegated ViewGroup.onInterceptTouchEvent(MotionEvent)

        Works exactly like the original method, this completly takes over it so make sure you implement it correctly

      • onTouchEvent

        boolean onTouchEvent​(android.view.MotionEvent event,
                             DelegatedTouchEventViewGroup source,
                             boolean wantsCancellationOnInterception)
        Delegated View.onTouchEvent(MotionEvent)

        Works exactly like the original method, this completly takes over it so make sure you implement it correctly

        Views can ask to receive a "fake" cancellation touch event when the delegate starts acting on touches (like responding to a pan action) This is useful if your view itself handles a touch event (like a tap) and not a subview as this case is NOT handled by onInterceptTouchEvent