Wednesday 15 August 2012

android - ImageView changed size after image change -


My image layout is in my layout now if I set a new image on it that changes the image view from the old Size is big. How can I avoid it?

specify layout_height and layout_width < Code> Parameter and ScaleType parameter.

  Android: Image = "id =" @ + id / my_imageView "Android: layout_width =" @ Dimen / my_image_width "android: layout_height =" @ dimen / my_image_height "Android: scaleType =" fitXY    

The option to scale the threshold of an image to the extent of this view. < / Div>

No comments:

Post a Comment