title: How to set transition duration programmatically in MotionLayout?
body: <p>I set a new transition manually in code like this:</p>
  
  <pre><code>intro_motion_layout.setTransition(R.id.middle, R.id.end)
  </code></pre>
  
  <p>Is there a way I can also set the duration this way?</p>
  
  <p>I have multiple <code>ConstraintSets</code> defined in XML and I switch between them when the first transition is complete using <code>onTransitionCompleted</code>. I have one <code>Transition</code> in my XML and it uses duration correctly there but the following <code>Transitions</code> that I set in code happen very quickly and I cant find a way to change their durations.</p>