android - Three states continuous animation (MotionLayout)
问题描述
I'm trying to make a continuous animation from the initial
state up to the end
state.
The transition from initial
to start
should be instant, so I set app:clickAction="jumpToEnd"
on the OnClick
handler.
The transition from start
to end
should automatically play after the previous transition, so I set app:autoTransition="animateToEnd"
. However, this does not happen. The overall animation is stuck in the start
state and does not play further.
If I remove the jumpToEnd
from the initial -> start
handler, the animation continues with the start -> end
transition, which makes me think that it is not a problem with the ConstraintSet
s of the states.
How can I implement the desired behaviour, i.e. initial -jumpOnClick-> start -automaticallyAnimate-> end
?
解决方案
推荐阅读
- java - 如何检查方法是否在 Java 中排队等待执行?
- javascript - 如何从导入的 SVG 设置画布的高度和宽度
- nginx - ffmpeg 和 nginx - 使用音频重新编码重新流式传输
- javascript - 如何在 for 循环中对输入元素使用 Javascript 函数。姜戈
- javascript - 为导入的组件添加样式是 React
- xml - 通过使用 Powershell 将现有子节点保留在现有 xml 文件中来添加父节点-
- java - 如何在Java中将uint8字节数组转换为字符串
- three.js - THREE.js planeGeometry 夹在墙内
- c++ - c++字符串元素转换为int
- node.js - Nginx Socket.io nodejs内存泄漏