Skip to content Skip to sidebar Skip to footer

How Works Android Imageview Android:scaletype="fitxy" Property?

I need to know how he takes drawable object. I'm collecting some ImageView objects in array, they have background images that are rather big in resolution so they take lot of memor

Solution 1:

It won't save you any memory to set the scaleType of the ImageView because the original backing Bitmap will still remain, regardless of which scaling you choose. Since you can resize or change the scale type dynamically there's no optimization that the ImageView can make with regards to image size.


Post a Comment for "How Works Android Imageview Android:scaletype="fitxy" Property?"