title: How to get image from ImageView and set it to other ImageView?
body: <p>I have two ImageViews as belows :</p>
  
  <pre><code>        &lt;ImageView android:id="@+id/image1"
            android:layout_width="match_parent"  
            android:layout_height="match_parent"  
            android:src="@drawable/ic_launcher" /&gt;
  
          &lt;ImageView android:id="@+id/image2"
            android:layout_width="match_parent"  
            android:layout_height="match_parent"  
            android:adjustViewBounds="true" 
            android:scaleType="fitCenter"
             /&gt;
  </code></pre>
  
  <p>the first imageView displays image in its actual size, the second ImageView should displays image in fitCenter size.</p>
  
  <p>I have been trying this code :</p>
  
  <pre><code>    ImageView img1 = (ImageView) findViewById(R.id.image1);
      ImageView img2 = (ImageView) findViewById(R.id.image2);
  
      img2.setImageDrawable(img1.getDrawable());
  </code></pre>
  
  <p>but the second ImageView just displays image as the first one. Yes, in its actual size. </p>
  
  <p>Can anyone help to find the solution?</p>
  
  <p>Thanks</p>