I have an AnimationSet with inside ScaleAnimation and TranslateAnimation, like this:
TranslateAnimation:
TranslateAnimation goTopFromRight = new TranslateAnimation(0, -(right.getLeft()-top.getLeft()), 0,-(right.getTop()-top.getTop()));
ScaleAnimation:
ScaleAnimation = setSizeForTop = new ScaleAnimation(1, 2, 1, 2);
and AnimationSet:
bringToLeftFromTopAnimationSet = new AnimationSet(true); bringToTopFromRightAnimationSet.addAnimation(goTopFromRight); bringToTopFromRightAnimationSet.addAnimation(setSizeForTop);
The problem is that when I try to use only ScaleAnimation, my element moves to the position I want, but I use ScaleAnimation with TranslateAnimation in AnimationSet, my element translates more than I need, as if ScaleAnimation introduces some additional movements and I I donβt know how to remove them.
Thank you for your help.
source share