title: Android scaled ImageView has empty space surrounding it even without padding and scale fitting
body: <p>I've seen a number of questions about this, but their suggested solutions have <em>not</em> worked for me, so I am asking a new question.</p>
  
  <p>I have a layout like the following:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                  xmlns:app="http://schemas.android.com/apk/res-auto"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:background="@drawable/character_detail_background"
      &gt;
  
      &lt;ImageView
          android:id="@+id/seriesDetailThumbnail"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_alignParentStart="true"
          android:layout_alignParentTop="true"
          android:adjustViewBounds="true"
          android:scaleType="fitXY"
          android:padding="0dp"
          android:scaleX="0.6"
          android:scaleY="0.6"
          app:srcCompat="@drawable/error_placeholder"/&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>This renders a layout like below, with a large empty space on all sides of the image. <strong>How can I get rid of this empty space?</strong></p>
  
  <p>Based on other questions I've seen on SO, they all recommend using <code>padding</code>, <code>adjustViewBounds</code> or <code>scaleXY</code>. I've used all three as you can see from the XML, however it <strong>has no effect</strong>.</p>
  
  <p><a href="https://i.stack.imgur.com/FvzIq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FvzIq.png" alt="enter image description here"></a></p>