title: ImageView changes position on rotation
body: <p>I have an two images in a relative layout. Image 2 is placed inside image 1. I want both images to rotate. Image one rotates perfectly but image 2 changes its position on rotation. Image 2 does not rotate around its original center.</p>
  
  <p>java code </p>
  
  <pre><code> ImageView playcircle = (ImageView) findViewById(R.id.playcircle);
  ImageView animationcircle =(ImageView)findViewById(R.id.animationcircle);
  Animation a = AnimationUtils.loadAnimation(getApplicationContext(), R.anim.linear_interpolator);
  playcircle.startAnimation(a); 
  animationcircle.startAnimation(a) ;
  </code></pre>
  
  <p>XML  code</p>
  
  <pre><code>&lt;RelativeLayout..................&gt;
  
      &lt;ImageView
        android:id="@+id/playcircle"
          android:layout_width="match_parent"
          android:layout_height="fill_parent"
          android:src="@drawable/mainmenu_play_circle" /&gt;
  
          &lt;ImageView
               android:id="@+id/animationcircle"
              android:layout_width="match_parent"
              android:layout_height="fill_parent"
  
              android:layout_margin="60dp"
              android:src="@drawable/mainmenu_animation" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>