Android Don';在运动布局的可单击子项上滑动
我将MotionLayout作为布局的父视图组。作为子级,它有CardView,其中包含一些按钮视图。当我开始在按钮上滑动时,它不起作用,当我开始在背景上滑动时,它起作用Android Don';在运动布局的可单击子项上滑动,android,onclick,swipe,android-motionlayout,android-motionscene,Android,Onclick,Swipe,Android Motionlayout,Android Motionscene,我将MotionLayout作为布局的父视图组。作为子级,它有CardView,其中包含一些按钮视图。当我开始在按钮上滑动时,它不起作用,当我开始在背景上滑动时,它起作用 <Transition motion:constraintSetEnd="@+id/top" motion:constraintSetStart="@+id/start" motion:motionInterpolator=&
<Transition
motion:constraintSetEnd="@+id/top"
motion:constraintSetStart="@+id/start"
motion:motionInterpolator="easeIn">
<OnSwipe
motion:dragDirection="dragUp"
motion:touchRegionId="@id/fn_card" />
</Transition>
可能有人知道怎么修吗
<androidx.cardview.widget.CardView
android:id="@+id/fn_card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cardCornerRadius="26dp"
app:layout_constraintTop_toBottomOf="@id/fn_guideline_middle">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/constraintLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<View
android:id="@+id/fn_card_back"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#DA9E06" />
<Button
android:id="@+id/fn_button_t"
android:layout_width="0dp"
android:layout_height="50dp"
android:layout_margin="26dp"
android:backgroundTint="#2B2B2B"
android:text="Button"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>