title: ImageView to scale to fixed height, but crop excess width
body: <p>I would like my <a href="https://developer.android.com/reference/android/widget/ImageView.html" rel="noreferrer"><code>ImageView</code></a> to scale in a particular fashion: </p>
  
  <ul>
  <li>Scale so that the height of the image always fits the height of the <code>ImageView</code></li>
  <li>Crop any excess width</li>
  </ul>
  
  <p>A picture speaks louder than a 1000 words, so here is a representation of how I want my <code>ImageView</code> to behave. Suppose it has a fixed height of say 100dp and suppose its width is <code>match_parent</code>.</p>
  
  <p><img src="https://i.stack.imgur.com/1vRh1.jpg" alt="enter image description here"></p>
  
  <p>Note that </p>
  
  <ul>
  <li>on the phone layout, the image height is stretched, but the sides are cropped, akin to <code>CROP_CENTER</code>.</li>
  <li>on the tablet layout, the image is also stretched to fit the <code>ImageView</code> height, behaving like <code>FIT_CENTER</code></li>
  </ul>
  
  <p>I suspect I need <code>scaleType:matrix</code>, but after that I'm lost. How can I make sure an image fits Y, but crops X?</p>