title: Glide-loaded Drawable cannot be set as background for Button, works for ImageButton
body: <p>I am unable to load a Drawable from a bitmap, into a Button instance:</p>
  <pre><code>        Glide.with(hostFragment.getActivity())
                  .load(internetHttpUrl)
                  .apply(new RequestOptions()
                          .override(150, 150))
                  .into(new CustomTarget&lt;Drawable&gt;() {
                      @Override
                      public void onResourceReady(@NonNull Drawable resource, @Nullable Transition&lt;? super Drawable&gt; transition) {
                          btnItem.setBackground(resource);
                      }
  
                      @Override
                      public void onLoadCleared(@Nullable Drawable placeholder) {
                      }
                  });
  </code></pre>
  <p>For all image/jpg I tried, nothing is displayed. Same goes for one PNG image. Another PNG image with transparent background does display, transparency is taken into account but the color palette seems completely wrong.</p>
  <p>The same code works fine, regardless of the image being used, for ImageButton instances.</p>
  <p>Is there some specific code to write for Buttons?</p>
  <p>My XML looks like this:</p>
  <pre><code>&lt;Button
      android:id=&quot;@+id/btnItem&quot;
      android:layout_width=&quot;wrap_content&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:paddingLeft=&quot;16dp&quot;
      android:paddingRight=&quot;16dp&quot;
      android:textSize=&quot;10sp&quot;
      android:text=&quot;DUMMY&quot;/&gt;
  </code></pre>
  <p>When using an ImageButton:</p>
  <pre><code>&lt;ImageButton
      android:id=&quot;@+id/btnItem&quot;
      android:layout_width=&quot;wrap_content&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:layout_weight=&quot;1&quot; /&gt;
  </code></pre>
  <p>When inspecting the bitmap with the debugger ('View bitmap' functionality), Android Studio reveals the bitmap is valid under all circumstances.</p>