Tuesday, January 30, 2018

ImageView Animation in Android

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(newLinearInterpolator());

anim.setRepeatCount(Animation.INFINITE);

anim.setDuration(700);


// Step 3: Start animating the image

 image.startAnimation(anim);


// Later. if you want to  stop the animation

// image.setAnimation(null);


you can download 
another example from here for better understanding :)
http://nineoldandroids.com/

Download

Happy Coddddding :)


visit link download
download
alternative link download