Android examples for Animation:Scale Animation
Scale to big Animation
//package com.java2s; import android.view.View; import android.view.animation.Animation; import android.view.animation.AnimationSet; import android.view.animation.ScaleAnimation; public class Main { public static void big(View animationView, float scaleValue) { AnimationSet animationSet = new AnimationSet(true); ScaleAnimation gigAnimation = new ScaleAnimation(scaleValue, 1f, scaleValue, 1f, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f); animationSet.addAnimation(gigAnimation); animationSet.setDuration(500);/* www .j av a 2 s . c o m*/ animationSet.setFillAfter(true); animationView.startAnimation(animationSet); } }