views:

85

answers:

1

Hi im retrieving image from URI and displaying in Imageview.

I need to re-size image from URI to fit size of the Imageview.

Pls help me how i can do this.

Thanks

+1  A: 
imageViewObject.setScaleType(ImageView.ScaleType.CENTER_INSIDE);

Or, if you are configuring the ImageView from the XML file, you can use this property:

android:scaleType="centerInside"
Cristian
Hi,I tried scaletype "fitXY". Worked for me.Thanks for reply
Praveenb