In my app, i am playing with android translation animation. I want to translate view from top right of screen to bottom left of the screen. I can translate the view. Now i want to pause the translation for some seconds in mid and then i want resume it. I have tired playing around with different interpolators. Those doesn't give the required result. Can someone tell me how can i achieve this kind of translation?
I am sharing the code that i am using for the translation.
AnimationSet animationSet = new AnimationSet(true);
ScaleAnimation scale = new ScaleAnimation(1f, 2f,
1f, 2f,
ScaleAnimation.RELATIVE_TO_PARENT, .5f,
ScaleAnimation.RELATIVE_TO_PARENT, .1f);
animationSet.addAnimation(scale);
int size[] = MainActivity.getDisplaySize(this);
TranslateAnimation animation = new TranslateAnimation(-1000, 1500, 300, 850);
animationSet.addAnimation(animation);
animationSet.setDuration(6000);
animationSet.setFillAfter(false);
animationSet.setInterpolator(new FastOutLinearInInterpolator());
animationSet.setAnimationListener(new MyAnimationListener());
imageView.startAnimation(animationSet);
Thanks!