How to Resize the Image and preserve its aspect ratio when downloading image from the internet in Android



When loading Images from the network, we'll need to set a specific flag,adjustViewBounds to our layout


TIP 2:


To re-size the image and preserve its aspect ratio among many android devices while downloading it from the network (or) internet, just add the following attribute to the Imageview

android:adjustViewBounds="true"

Comments

Popular posts from this blog

Google India Introduces the people card on Google Search for Mobile Devices with ' Add me to search'.

How to Install Node js on Ubuntu