title: Android animation to rotate a image around its centre point
body: <p>I am struggling with an android xml animation. I want to rotate an image anti clockwise around its central point.</p>
  
  <p>Here is my xml for the animation:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;set xmlns:android="http://schemas.android.com/apk/res/android"
  android:fillAfter="true" &gt;
  
  &lt;rotate
      android:duration="1000"
      android:repeatCount="infinite"
      android:repeatMode="restart"
      android:fromDegrees="360"
      android:toDegrees="0"
      android:pivotX="0.5"
      android:pivotY="0.5"         
      android:interpolator="@android:anim/linear_interpolator"        
     /&gt;
  </code></pre>
  
  <p></p>
  
  <p>No this current animation rotates the image around the point x=0 ; y=0 .</p>