I am beginner to Animation in Android.
I want to set animation like Pendulum(Swing left to right) to image in my Activity.
what I have done so far is:
Animation anim = new RotateAnimation(0, 30, 0, 0);
anim.setRepeatMode(Animation.REVERSE);
anim.setInterpolator(new AccelerateDecelerateInterpolator());
anim.setDuration(1500);
anim.setFillAfter(true);
But it doesn’t work at all…
can anybody suggest me how to do Animation?
Thank You….
I had the exact same problem, and ended up with an xml-only solution: http://blog.sqisland.com/2012/01/android-pendulum-animation.html