2

I have a bitmap with resolution of 1024X748 and am applying that to image view of 1280X696.

Bitmap is drawn into imageview but It did not fill entire view as it maintains aspect ratio . I want to get the space between image view and bitmap drawn into that.

Please help is there any API and logic to get it.

hs.chandra
  • 707
  • 1
  • 7
  • 19
jkstar
  • 467
  • 2
  • 7
  • 19

1 Answers1

2

use

 android:scaleType="fitXY"

in your imageview in your xml

JRowan
  • 6,824
  • 8
  • 40
  • 59
  • Thanks for your input. I have got it worked through solution in this link http://stackoverflow.com/questions/3855218/trying-to-get-the-display-size-of-an-image-in-an-imageview – jkstar Apr 26 '13 at 08:24