How to handle <OnClick> and onClickListener in MotionLayout similar to Youtube
问题 I have been trying to understand how MotionLayout works and after some trying I have a question as to how OnClick works for a View. I have something that I tried from official examples. I tried something similar to the youtube swiping. scene_24.xml <Transition motion:constraintSetEnd="@+id/end" motion:constraintSetStart="@+id/start" motion:duration="1000" motion:motionInterpolator="linear"> <OnSwipe motion:dragDirection="dragUp" motion:touchAnchorSide="bottom" motion:touchRegionId="@+id/top