title: Android shared element transition not working with different img scale types
body: <p>I want to perform shared element transition when switching from Activity A to Activity B. The problem is that transition animation is not working smoothly when shared imageViews <strong>scale types are different</strong>. I am noticing a "bounce" in the very beginning of transition (on not animated imageView scaleType change I guess). The same "bounce" I am noticing when coming back from Activity B to Activity A.</p>
  
  <p>Details:</p>
  
  <p>Activity A contains imageView with <strong>scaleType: centerCrop</strong>. 
  Actvity B contains imageView with <strong>scaleType: fitXY</strong>.</p>
  
  <p>Both ImageView have <code>android:transitionName="sharedView"</code>, of course.</p>
  
  <p>My transition set in xml looks like this:</p>
  
  <pre><code>&lt;transitionSet xmlns:android="http://schemas.android.com/apk/res/android"&gt;
     &lt;changeBounds/&gt;
     &lt;changeImageTransform/&gt;
  &lt;/transitionSet&gt;
  </code></pre>
  
  <p>In documentation about this config is written:</p>
  
  <blockquote>
    <p>In combination with ChangeBounds, ChangeImageTransform allows
    ImageViews that change size, shape, or <strong>ImageView.ScaleType</strong> to animate
    contents smoothly.</p>
  </blockquote>
  
  <p>So why my transition is not working smoothly? Or how to animate scaleType change during shared element transition if <code>changeBounds</code> with <code>changeImageTransform</code> doesn't seem to work?</p>
  
  <p>Worth to mention that if I make scale types equal (e.g. centerCrop and centerCrop) of shared views - then transition works smoothly and everything is ok.</p>