Java tutorial
//package com.java2s; import android.view.animation.AccelerateInterpolator; import android.view.animation.Animation; import android.view.animation.ScaleAnimation; public class Main { public static Animation createScaleAnimation(float fromXScale, float toXScale, float fromYScale, float toYScale, long duration) { ScaleAnimation anim = new ScaleAnimation(fromXScale, toXScale, fromYScale, toYScale, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f); anim.setFillAfter(true); anim.setInterpolator(new AccelerateInterpolator()); anim.setDuration(duration); return anim; } }