You can do this by applying ScaleAnimation
and TranslateAnimation
together in an AnimationSet
// Scaling Animation scale = new ScaleAnimation(fromXscale, toXscale, fromYscale, toYscale, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f); // 1 second duration scale.setDuration(1000); // Moving up Animation slideUp = new TranslateAnimation(fromX, toX, fromY, toY); // 1 second duration slideUp.setDuration(1000); // Animation set to join both scaling and moving AnimationSet animSet = new AnimationSet(true); animSet.setFillEnabled(true); animSet.addAnimation(scale); animSet.addAnimation(slideUp); // Launching animation set logo.startAnimation(animSet);
source share