title: Setting ImageView ScaleType to "center" is not working as I expect it
body: <p>I have the following layout for my <code>ImageView</code>:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:orientation="horizontal"
      android:descendantFocusability="blocksDescendants"&gt;
      &lt;ImageView
          android:id="@+id/imageview_icon"
          android:layout_width="48dp"
          android:layout_height="48dp"
          android:scaleType="fitCenter" /&gt;
      (...)
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Those <code>48dp</code> equal to 36px, 48px and 72px in <code>ldpi</code>, <code>mdpi</code> and <code>hdpi</code> respectively. All the images that will be used in this <code>ImageView</code> are basically icons and I've found on the web what I want for my app (free license). But unfortunately, it doesn't come with images bigger than 48px and using different images is out of the question. So I need a new solution...</p>
  
  <p>For now I have 36px and 48px images in the <code>ldpi</code> and <code>mdpi</code> folders, respectively. But I'm having trouble with <code>hdpi</code>. What I want for devices running on <code>hdpi</code> is for them to use the <code>mdpi</code> image (the bigger one available) and use it as it is, without scaling. Basically, the <code>ImageView</code> for <code>hdpi</code> is 72px, so I want the 48px image to be inside the 72px, in the center, without scaling. For that, I simply tried to change <code>scaleType</code> in the <code>ImageView</code> above to just <code>center</code>, but the image gets scaled anyway.</p>
  
  <p><strong>My ultimate question in here is, what's the proper way to fix the problem described above? How can I have <code>ldpi</code> and <code>mdpi</code> images being used in their respective densities, but have devices running <code>hdpi</code> pick up the biggest image available (which is the <code>mdpi</code> ones) and prevent any scaling, just fitting the image in the center of the <code>ImageView</code>?</strong></p>
  
  <p><strong>EDIT:</strong><br>
  I answered this question myself, but it might to be the answer others coming here are looking for. But I do provide some insight on what's really happening and the underlying problem. Please take a look and provide a workaround/fix if you can. I dare you :)</p>