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
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
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"