title: How to rotate a drawable but not the imageView itself?
body: <p>I'have an image view with a drawable inside. This drawable is a ring similar to the one present in progress dialog : </p>
  
  <p>loading_ring : </p>
  
  <pre><code>&lt;shape
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:shape="ring"
      android:innerRadiusRatio="3"
      android:thicknessRatio="8"
      android:useLevel="false"&gt;
      &lt;size
          android:width="20dip"
          android:height="20dip"/&gt;
  
      &lt;gradient
          android:type="sweep"
          android:useLevel="false"
          android:startColor="#4c737373"
          android:centerColor="#4c737373"
          android:centerY="0.50"
          android:endColor="#ffffffff"/&gt;
  &lt;/shape&gt;
  </code></pre>
  
  <p>In order to rotate this ring i have created a rotate animation like this : </p>
  
  <pre><code>&lt;rotate xmlns:android="http://schemas.android.com/apk/res/android"
      android:fromDegrees="0"
      android:toDegrees="359"
      android:pivotX="50%"
      android:pivotY="50%"
      android:repeatCount="infinite"
      android:duration="1000"
      android:interpolator="@android:anim/linear_interpolator" /&gt;
  </code></pre>
  
  <p>but when i apply the animation on the imageView : </p>
  
  <pre><code>this.cameraView.setAnimation(AnimationUtils.loadAnimation(this,R.anim.loadinganimation));
  </code></pre>
  
  <p>The all imageView is rotating. I would like to rotate only the ring (the src of the imageview) how can i achieve that ?</p>
  
  <p>Thanks</p>