<p dir="auto"><em>homeview_appbar_background.xml</em> (my drawable alias)</p>
<div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;bitmap xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
  android:src=&quot;@drawable/homeview_appbar_background_port&quot; /&gt;"><pre class="notranslate">&lt;?<span class="pl-ent">xml</span><span class="pl-e"> version</span>=<span class="pl-s"><span class="pl-pds">"</span>1.0<span class="pl-pds">"</span></span><span class="pl-e"> encoding</span>=<span class="pl-s"><span class="pl-pds">"</span>utf-8<span class="pl-pds">"</span></span>?&gt;
&lt;<span class="pl-ent">bitmap</span> <span class="pl-e">xmlns</span><span class="pl-e">:</span><span class="pl-e">android</span>=<span class="pl-s"><span class="pl-pds">"</span>http://schemas.android.com/apk/res/android<span class="pl-pds">"</span></span>
  <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">src</span>=<span class="pl-s"><span class="pl-pds">"</span>@drawable/homeview_appbar_background_port<span class="pl-pds">"</span></span> /&gt;</pre></div>
<p dir="auto">Using this code to load does not work, because a drawable.xml alias file is used and not the original file itself.</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Glide.with(this)
     .load(R.drawable.homeview_appbar_background)
     .into(imageView);"><pre class="notranslate"><span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-smi">this</span>)
     .<span class="pl-en">load</span>(<span class="pl-smi">R</span>.<span class="pl-s1">drawable</span>.<span class="pl-s1">homeview_appbar_background</span>)
     .<span class="pl-en">into</span>(<span class="pl-s1">imageView</span>);</pre></div>
<p dir="auto">However, this works, because glide directly references the .png drawable.</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Glide.with(this)
     .load(R.drawable.homeview_appbar_background)
     .into(imageView);"><pre class="notranslate"><span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-smi">this</span>)
     .<span class="pl-en">load</span>(<span class="pl-smi">R</span>.<span class="pl-s1">drawable</span>.<span class="pl-s1">homeview_appbar_background</span>)
     .<span class="pl-en">into</span>(<span class="pl-s1">imageView</span>);</pre></div>
<p dir="auto">Note: "does not work" means that nothing happens when the glide loading is called.</p>
<p dir="auto">We have a placeholder shape drawable (or sometimes shown directly as <code class="notranslate">.load(R.drawable.abc)</code>) which fails to display. The onException listener is called, but e is null.</p>
<p dir="auto">The logs contain only:</p>
<pre class="notranslate">com.example.app D/skia﹕ --- SkImageDecoder::Factory returned null</pre>
<p dir="auto">Glide: 3.5.2<br>
Tested on Genymotion v4.4.2</p>
<p dir="auto">The drawable:</p>
<div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;shape xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
       android:shape=&quot;rectangle&quot;&gt;
    &lt;solid android:color=&quot;#ffabcdef&quot;/&gt;
&lt;/shape&gt;"><pre class="notranslate">&lt;<span class="pl-ent">shape</span> <span class="pl-e">xmlns</span><span class="pl-e">:</span><span class="pl-e">android</span>=<span class="pl-s"><span class="pl-pds">"</span>http://schemas.android.com/apk/res/android<span class="pl-pds">"</span></span>
       <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">shape</span>=<span class="pl-s"><span class="pl-pds">"</span>rectangle<span class="pl-pds">"</span></span>&gt;
    &lt;<span class="pl-ent">solid</span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">color</span>=<span class="pl-s"><span class="pl-pds">"</span>#ffabcdef<span class="pl-pds">"</span></span>/&gt;
&lt;/<span class="pl-ent">shape</span>&gt;</pre></div>