Code example for Transformation

0
import android.view.animation.Transformation; 
 
public class AnimateDrawable extends ProxyDrawable { 
     
    private Animation mAnimation;
    private Transformation mTransformation = new Transformation();
 
    public AnimateDrawable(Drawable target) {
        super(target);
    } 
     
    public AnimateDrawable(Drawable target, Animation animation) {
        super(target);
        mAnimation = animation;
    } 
     
    public Animation getAnimation() {
        return mAnimation;
    } 
     
    public void setAnimation(Animation anim) {