如何反转 Android 中的加速插值器的加速度
我在我的应用程序中的 TextView 上使用 2 个动画。
第一个完成,然后我更改 TextView 的文本,然后开始第二个。我想在整个序列上使用加速插值器效果,但是如果我单独应用它,它将不起作用,因为速度将在每个动画上重新启动。
我需要反转第二个动画,即。使其开始快,结束慢。
有什么办法可以做到这一点吗?
谢谢!
I'm using 2 animations on a TextView in my app.
The first one completes, then I change the text of the TextView, then I start the second one. I would like to use an Accelerate Interpolator effect on the whole sequence, however if I apply it individually it doesn't work, since the speed will restart on each animation.
I need to invert the animation of the second one, ie. make it start fast and end slow.
Is there any way to do this?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用DecelerateInterpolator():
IE
use a
DecelerateInterpolator()
:i.e.