title: Android ImageView being cropped
body: <p>first of all here's a graphic to illustrate my problem:
  <a href="http://abload.de/img/unbenannt-12zjrn.jpg" rel="nofollow">Graphic</a></p>
  
  <p>On the left image you can see how it should look. And this is also how AndroidStudio shows it in the preview. But if I run it on the emulator, it cropps the image and only the dark green part is left. (right image)</p>
  
  <pre><code>&lt;ImageView
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:id="@+id/img_header"
          android:layout_alignParentTop="true"
          android:layout_centerHorizontal="true"
          android:focusableInTouchMode="false"
          android:src="@drawable/header"
          android:adjustViewBounds="true"
          android:scaleType="centerCrop" /&gt;
  </code></pre>
  
  <p>The parent view:</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  tools:context=".menu"&gt;
  </code></pre>
  
  <p>I trief different scaleTypes, but nothing gives me the outcome I want to have.
  Not the first time I'm sturggling with ImageViews, but the first time I can't solve the issue myself...</p>
  
  <p>If I remove the "adjustViewBounds" the preview shows the same outcome as the device/emulator. In case that that is a hint for someone.</p>
  
  <p>Edit: I created a second version of the header, which is double the size. And now it works with "fitXy" and "adjustViewBound(true)". But why? The original image was 512px in height, which should've been enough for adjustViewBounds to keep the aspect ratio.</p>