Android 通过在运动中使用touchAnchorId,布局按钮不起作用

Android 通过在运动中使用touchAnchorId,布局按钮不起作用,android,android-studio,android-motionlayout,Android,Android Studio,Android Motionlayout,我使用了touchAnchorId,因此运动布局仅在我滑动单个区域时适用,因为在recyclerview上滚动时,如果没有它,它会自动拖动 <Transition motion:constraintSetStart="@id/start" motion:constraintSetEnd="@id/end" motion:duration="400" motion:motionInterpolator

我使用了touchAnchorId,因此运动布局仅在我滑动单个区域时适用,因为在recyclerview上滚动时,如果没有它,它会自动拖动

<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>

但在使用touchAnchorId后,我无法使用该剧,下一个跳过上一个跳过不知道为什么。有人能帮我修改代码吗

用黄色圆圈圈出的按钮不起作用

我已更改

motion:touchRegionId="@id/constraintLayout"

现在它工作正常了

(parent_layout是整个约束布局(定义整个ui的父约束布局)的id)


如果有人需要整个xml文件的代码,请在注释中询问

我也遇到了完全相同的问题。我对touchRegionId值进行了motionlayout,结果成功了。
motion:touchRegionId="@id/parent_layout"