I have images with dynamical dimensions and ImageView with statistical height.
I'm trying to bind my image in my imageView like this.
I mean to fill the ImageView horizontally, but not vertically. Here is my code
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="280dp">
<ImageView
android:id="@+id/exploreImage"
android:src="@drawable/beard1"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>
But there is now ScaleType in ImageView, that allows this way to bind.
Do you have any idea about how to do it?