title: Android shared element transition on ImageView scale is wrong
body: <p>I have tried many different variations and cannot get the return transition to work properly. </p>
  
  <p>When i exit Activity B the image transitions back to Activity A but it is scaled until it disappears then after disappearing is shows where it should. </p>
  
  <p>I have tried different variations of the following and others in that group
  
  </p>
  
  <p>Activity A
  Coming from click listener in recyclerview. </p>
  
  <pre><code>Intent intent = new Intent(getActivity(), ApplyActivity.class);
              ActivityOptionsCompat transitionActivityOptions;
              transitionActivityOptions = ActivityOptionsCompat.makeSceneTransitionAnimation(getActivity(), imageView, getString(R.string.transition_image_details));
              intent.putExtra(ApplyActivity.EXTRA_NAME, selected_launcher);
              intent.putExtra(ApplyActivity.EXTRA_INSTALLED, mLaunchers.get(position).getInstalled());
  
              getActivity().startActivity(intent, transitionActivityOptions.toBundle());
  </code></pre>
  
  <p>Activity A layout</p>
  
  <pre><code>&lt;ImageView
  android:id="@+id/launcher_icon"
  android:transitionName="@string/transition_image_details"
  android:layout_width="72dp"
  android:layout_height="72dp"
  android:layout_centerHorizontal="true"
  android:padding="@dimen/small_padding"
  android:layout_alignParentTop="true" /&gt;
  </code></pre>
  
  <p>Activity B</p>
  
  <pre><code> Transition transition = TransitionInflater.from(this).inflateTransition(R.transition.change_image_transform);
  
          getWindow().setSharedElementReturnTransition(transition);
          getWindow().setSharedElementEnterTransition(transition);
          getWindow().setSharedElementExitTransition(transition);
  </code></pre>
  
  <p>I have tried the following true/false getWindow().setSharedElementsUseOverlay(true);</p>
  
  <p>Activity B layout (within an AppBarLayout/CollapsingToolbarLayout)</p>
  
  <pre><code>&lt;ImageView
     android:id="@+id/backdrop"
     android:transitionName="@string/transition_image_details"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     android:paddingBottom="80dp"
     android:paddingTop="30dp"
     app:layout_collapseMode="parallax"
     app:layout_collapseParallaxMultiplier="0.7" /&gt;
  </code></pre>
  
  <p>change_image_transform.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;transitionSet xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;changeTransform  /&gt;
  &lt;changeImageTransform /&gt;
  &lt;/transitionSet&gt;
  </code></pre>
  
  <p>I have tried setting the transition in values-v21/styles.xml too with no luck.</p>
  
  <p>I have even tried setting the position from the recyclerview the transition name with no luck either.</p>
  
  <p>Here is a video of the issue. I slowed down the transition so it could be seen better </p>
  
  <p><a href="https://www.dropbox.com/s/gzli11ae3ebz95f/2016_04_19_20_33_29.mp4?dl=0" rel="nofollow">https://www.dropbox.com/s/gzli11ae3ebz95f/2016_04_19_20_33_29.mp4?dl=0</a></p>