Java tutorial
//package com.java2s; import android.animation.AnimatorSet; import android.animation.ObjectAnimator; import android.widget.ImageView; public class Main { public static void changeImageSize(ImageView image, float fromScale, float toScale) { ObjectAnimator scaleX; ObjectAnimator scaleY; scaleX = ObjectAnimator.ofFloat(image, "scaleX", fromScale, toScale); scaleY = ObjectAnimator.ofFloat(image, "scaleY", fromScale, toScale); AnimatorSet set = new AnimatorSet(); set.setDuration(150); set.playTogether(scaleX, scaleY); set.start(); } }