Wednesday, 4 September 2013

ImageView Animation in Android

ImageView Animation in Android 

Animation for imageview is very simple here is simplest example.

// Step1 : create the  RotateAnimation object
RotateAnimation anim = new RotateAnimation(0f, 350f, 15f, 15f);
// Step 2:  Set the Animation properties
anim.setInterpolator(new LinearInterpolator());

// Step 3: Start animating the image

// Later. if you want to  stop the animation
// image.setAnimation(null);

you can download 
another example from here for better understanding :)


Happy Coddddding :)