<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/21040178/30143749-047667b4-93ba-11e7-9a38-eb04272e314d.png"><img src="https://user-images.githubusercontent.com/21040178/30143749-047667b4-93ba-11e7-9a38-eb04272e314d.png" alt="image" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/21040178/30143758-172ab068-93ba-11e7-8d67-0001dc037ae4.png"><img src="https://user-images.githubusercontent.com/21040178/30143758-172ab068-93ba-11e7-8d67-0001dc037ae4.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/21040178/30143844-61dd13e4-93ba-11e7-98bd-9f714d0307fe.png"><img src="https://user-images.githubusercontent.com/21040178/30143844-61dd13e4-93ba-11e7-98bd-9f714d0307fe.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Is there anything wrong with my code?<br>
Why is the picture like this?</p>
<p dir="auto">With this layout:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;FrameLayout
        xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
        xmlns:tools=&quot;http://schemas.android.com/tools&quot;
        android:layout_width=&quot;@dimen/media_bubble_height&quot;
        android:layout_height=&quot;@dimen/media_bubble_height&quot;
        android:layout_marginBottom=&quot;5dp&quot;
        android:layout_gravity=&quot;center&quot;
        android:scaleType=&quot;centerCrop&quot;
        android:adjustViewBounds=&quot;true&quot;&gt;

    &lt;ImageView android:id=&quot;@+id/image&quot;
               android:layout_width=&quot;match_parent&quot;
               android:layout_height=&quot;match_parent&quot;
               android:adjustViewBounds=&quot;true&quot;
               android:clickable=&quot;false&quot;
               android:longClickable=&quot;false&quot;
               android:scaleType=&quot;fitCenter&quot;/&gt;

&lt;/FrameLayout&gt;"><pre class="notranslate"><code class="notranslate">&lt;FrameLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="@dimen/media_bubble_height"
        android:layout_height="@dimen/media_bubble_height"
        android:layout_marginBottom="5dp"
        android:layout_gravity="center"
        android:scaleType="centerCrop"
        android:adjustViewBounds="true"&gt;

    &lt;ImageView android:id="@+id/image"
               android:layout_width="match_parent"
               android:layout_height="match_parent"
               android:adjustViewBounds="true"
               android:clickable="false"
               android:longClickable="false"
               android:scaleType="fitCenter"/&gt;

&lt;/FrameLayout&gt;
</code></pre></div>
<p dir="auto">Loading a gif into the ImageView:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    GlideApp.with(getContext())
            .load(model)
            .diskCacheStrategy(DiskCacheStrategy.NONE)
            .transform(new RoundedCorners(radius))
            .transition(withCrossFade())
            .into(image);"><pre class="notranslate"><code class="notranslate">    GlideApp.with(getContext())
            .load(model)
            .diskCacheStrategy(DiskCacheStrategy.NONE)
            .transform(new RoundedCorners(radius))
            .transition(withCrossFade())
            .into(image);
</code></pre></div>
<p dir="auto">Consistently produces these glitches in Glide 4.2.0:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/512439/31473424-40e8c868-aea9-11e7-994f-14a83fdee1ff.gif"><img src="https://user-images.githubusercontent.com/512439/31473424-40e8c868-aea9-11e7-994f-14a83fdee1ff.gif" alt="glitchy" data-animated-image="" style="max-width: 100%;"></a></p>
<p dir="auto">Happens for every gif I try, here's a sample:<br>
<a href="https://media.giphy.com/media/xUNd9W5Wbh8cRmdFBe/giphy.gif" rel="nofollow">https://media.giphy.com/media/xUNd9W5Wbh8cRmdFBe/giphy.gif</a></p>
<p dir="auto">In Glide 3.7 I used a custom RoundedCorners transformation (I don't think one came with Glide?) and this wasn't an issue.</p>
<p dir="auto"><strong>Glide Version</strong>: 4.2.0</p>