skip to Main Content

Android Studio – MotionLayout OnSwipe spring physics stop working after transitionToStart/End()

I have the following MotionLayout: The Transition XML is as follows (I omitted the keyframes because they don't matter for this example). <Transition motion:constraintSetStart="@id/collapsed" motion:constraintSetEnd="@id/expanded" motion:duration="500" motion:motionInterpolator="cubic(0.2,0,0,1)"> <OnSwipe motion:springDamping="63.973" motion:autoCompleteMode="spring" motion:onTouchUp="autoComplete" motion:dragDirection="dragUp" motion:touchAnchorId="@id/now_playing_touchable_area" motion:touchAnchorSide="top" motion:springStopThreshold="1.0E-4" motion:springMass="2.6" motion:springStiffness="389.76" /> <KeyFrameSet> ...…

VIEW QUESTION
Back To Top
Search