title: How to Swing image like pendulum in android?
body: <p>I am beginner to Animation in Android.
  I want to set animation like Pendulum(Swing left to right) to image in my Activity.</p>
  
  <p>what I have done so far is:</p>
  
  <pre><code>Animation anim = new RotateAnimation(0, 30, 0, 0);
  anim.setRepeatMode(Animation.REVERSE);
  anim.setInterpolator(new AccelerateDecelerateInterpolator());
  anim.setDuration(1500);
  anim.setFillAfter(true);
  </code></pre>
  
  <p>But it doesn't work at all...
  can anybody suggest me how to do Animation?</p>
  
  <p>Thank You....</p>