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!
use a DecelerateInterpolator()
:
An interpolator where the rate of change starts out quickly and and then decelerates.
ie
animation.setInterpolator(new DecelerateInterpolator());
animation.setDuration(300L);
v.startAnimation(animation);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.