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());
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 :)
Happy Coddddding :)
No comments:
Post a Comment