I am getting a bitmap from a server which is wider than it is high eg height = 612, width = 816 and putting it in an ImageView that is: Height = 568 and Width =320. The image that comes from the server appears landscaped in the imageview, that is, it appears on its side. However I want to scale it to fit the ImageViews dimensions. I tried a lot of different scale types, fitXY
i thought would fix it but it is still the same. Below is my xml:
<ImageView
android:id="@+id/imageView1"
android:adjustViewBounds="true"
android:layout_width="320dp"
android:layout_height="568dp"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:scaleType="fitXY"
/>