title: Java Android - cropping Image in ImageView
body: <p>I know this should be simple , but <code>android:scaleType="centerCrop"</code> doesn't crop Image</p>
  
  <p>I got image <em>1950 pixels</em> wide and need it to be cropped by parent's width. But <code>android:scaleType="centerCrop"</code> dosen't crop Image. What do I need to do in layout to show only first <em>400 pixels</em>, for instance or whatever screen/parent width is </p>
  
  <p>Sorry for simple question - tried to google it - only complicated questions there. And I'm new, so dont downvote plz)</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/rl1"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@color/background_color"&gt;
  
      &lt;ImageView
              android:id="@+id/ver_bottompanelprayer"
              android:layout_width="match_parent"
              android:layout_height="227px"
              android:layout_alignParentBottom="true"
              android:layout_alignParentLeft="true"
              android:scaleType="matrix"
  
              android:background="@drawable/ver_bottom_panel_tiled_long" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>