Return Shared Element Transition after ImageView changes
<p>I have a fully working shared element transition between 2 fragments, lets say A to B, and they both share an ImageView. Everything works out except when I replace the shared ImageView on B. Currently I'm changing it using the following code:</p>

<pre><code>Glide.with(getActivity())
                .load(getArguments().getString(Constants.APPVIEW_FEATURE_IMAGE_URL)).asBitmap()
                .into(new SimpleTarget&lt;Bitmap&gt;() {
                    @Override
                    public void onResourceReady(Bitmap resource, GlideAnimation&lt;? super Bitmap&gt; glideAnimation) {
                        if (getView() != null) {
                            ((ImageView) getView().findViewWithTag(Constants.TAG_FGRAPHIC)).setImageBitmap(resource);
                        }
                    }
                });
</code></pre>

<p>I replace the ImageView that I received from A on B with a higher definition one, since this is a header Image that will extend from a listView to a full width header.</p>

<p>The problem is that when returning from B to A, the animation goes wrong because when I press Back, the image changes size right away to it's size on A instead of using the animation scaling down from it's B size to A size. It still moves from the header to the A location correctly, it's just the size problem.</p>

<p>If I don't replace the image, no problem happens and everything goes normal.</p>

<p>Any idea? Thanks.</p>