D
D
Dmitry2021-07-13 23:01:14
Java
Dmitry, 2021-07-13 23:01:14

How to change the speed of Motion Layout through code?

Movement speed is set via .xml.

<Transition
        motion:autoTransition="animateToEnd"
        motion:constraintSetEnd="@+id/start"
        motion:constraintSetStart="@+id/end"
        motion:duration="5000" />


How can duration be changed through code?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question