Android Shared element transition - prevent shared element from being drawn : <p>I'm working in a custom <code>Transition</code> to animate only the visible part of the <code>Shared View</code> in case it is partially visible.</p>

<p>In my case this happens because the <code>Shared View</code> is inside a <code>ConstraitLayout</code>, and the <code>ConstraitLayout</code> inside a <code>ScrollView</code>.</p>

<p>I mentioned this problem in another question:
<a href="https://stackoverflow.com/questions/48607863/shared-element-transition-animate-only-the-visible-part-of-the-shared-view">Shared element transition - animate only the visible part of the shared view
</a></p>

<p>This is the defaul <code>transition</code> choose by the system:</p>

<p><a href="https://i.stack.imgur.com/I4FZW.gif" rel="noreferrer"><img src="https://i.stack.imgur.com/I4FZW.gif" alt="enter image description here"></a></p>

<p>And this is the one where I'm working:</p>

<p><a href="https://i.stack.imgur.com/CJ8Si.gif" rel="noreferrer"><img src="https://i.stack.imgur.com/CJ8Si.gif" alt="enter image description here"></a></p>

<p>The animation itself works well ... But the problem is the system draws the full shared view, before the animation starts... and there is an ugly blink.</p>

<p><strong>How can I prevent that?</strong></p>

<p>I have already on my style:</p>

<p><code>&lt;item name="android:windowSharedElementsUseOverlay"&gt;false&lt;/item&gt;</code></p>
