I have spent a very long time researching this issue to no avail. I am attempting to automatically resize an ImageView to match the parent views width (maintaining aspect ratio), while at the same time only allowing the top of the image to be cropped. The left, right, and bottom portions of the image cannot be cut off, so centerCrop does not accomplish what I need.
The top of the image fades into the background color of the app, which is the only part of the image that can be cropped to achieve a proper aspect ratio.
I have also tried using fitXY, however, the aspect ratio is not kept and it looks very bad on some devices.