title: Rotate animation android
body: <p>I'm trying to do a rotating image animation.
  I need to rotate an icon around <strong>itself</strong> just like they do in a progressbar, but what I'm getting is an image rotating around a circle.
  Here is my animation code</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;rotate
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:fromDegrees="0"
  android:toDegrees="360"
  android:interpolator="@android:anim/linear_interpolator"
  android:pivotX="50%"
  android:pivotY="50%"
  android:duration="2500"
  android:repeatCount="infinite"
  android:repeatMode="restart"
  /&gt;
  </code></pre>
  
  <p>Where am I going wrong in here?
  Thanks</p>