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

How To Record Audio in Moto G Without Any Third Party Apps

How to Unistall Software (or) Programs in Ubuntu Using the Terminal

All the Questions Answered About Rs.500 and Rs.1000 In this Frequently Asked Question Document