I have used this article to create an expand/collapse cardview component. Right now, the expand/collapse animation is linear. I want to apply a bezier curve to the animation so that the animation will be ease-in-out
. I have googled a lot and couldn't find out how it can be added dynamically at runtime. I have seen it applying from the MotionScene xml file. But could not find any material which does this at runtime. Please let me know how this can be added at runtime.
Thanks very much.
Apply bezier curve to MotionLayout at runtime
218 views Asked by Jayesh Babu At
1
Transition has a method setInterpolatorInfo so in the article you reference where they type
transaction.duration = 1000
You should be able to add one of the below.