防止补间翻译重置 - android
我有一个简单的补间转换,可将对象向上移动 200 像素。一旦它完成移动,它总是会弹回原来的状态,我不希望这样。我希望它留在我移动它的地方。
我知道这应该是一个明显的解决方案,但我无法在任何地方找到方法/属性来使其停止而不是重置......
I have a simple translate tween that moves an object up 200 pixels. As soon as it's finished moving, it always bounces back to its original state and I don't want that. I want it to stay where I moved it.
I know this is should be an obvious solution, but I can't find the method/property anywhere to make it just stop and not reset...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Animation.setFillAfter(true) 可能就是您正在寻找的。
Animation.setFillAfter(true) might be what you are looking for.