I used touchAnchorId so that the motion Layout applies only when i swipe through a single region because without it while scrolling on recyclerview it automatically drags Up.
<Transition
motion:constraintSetStart="@id/start"
motion:constraintSetEnd="@id/end"
motion:duration="400"
motion:motionInterpolator="linear">
<OnClick motion:targetId="@+id/close" />
<OnSwipe
motion:maxAcceleration="800"
motion:dragDirection="dragUp"
motion:touchRegionId="@id/constraintLayout"
motion:touchAnchorId="@+id/constraintLayout"
motion:touchAnchorSide="top" />
<KeyFrameSet>
</KeyFrameSet>
</Transition>
But after using touchAnchorId i can not use the play, skip_next & skip_previous don't know why. Can anyone help me fixing my code
buttons circled by yellow circle are not working