I have an image that gets cut from the top as well as the bottom when it is rendered inside an ImageView. I want it to be cut only from the top. Here's an illustration of the problem. Yellow represents the image and blue is the screen viewport covered by an ImageView.
I have tried FIT_END as scaleType, it didn't help as the image shrinks inside the View and the left portion is left with white space. Also, tried it with adjustViewBounds, there's no change. I don't want the image to shrink.
Edit: Here's my layout, that simply has an ImageView.
<ImageView
android:id="@+id/background"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop" />