0

This is the image which i getting from server.enter image description here

This is my resized image. enter image description here

My ImageView height is always 120dp and width is fill_parent. I am getting 1024*1024 px images from server. How can i change the image for setting in my ImageView without stretching? I have worked out one,two,three,etc. But i got stretchable image. Give some idea to solve this.

Thanks in advance.

Community
  • 1
  • 1
selva_pollachi
  • 4,147
  • 4
  • 29
  • 42

1 Answers1

0

In the XML you could try using:

android:layout_width="match_parent"
android:layout_height="120dp"
android:scaleType="fitXY"
Ayohaych
  • 5,099
  • 7
  • 29
  • 51