I’m using the Ignition class RemoteImageView to asynchronously download and show images. RemoteImageView is a subclass of ImageView.
I’m downloading 600×600 images and showing them at various sizes… 260×260, 100×100, etc. I notice the image seems fuzzy, less crisp, with artifacts in it.
I don’t know much about image rendering, but I notice when I look at the same images in Google Chrome and try zooming out in the browser, it will momentarily have that fuzzy look to it, and then the lines will straighten, the image becoming less blurry and crisp once more–so I’m guessing there’s some kind of rendering effect using to show images that I’m not doing with my ImageView.
The images come off a server; I cannot change those original images or have different sizes sent to me.
What else can I do–hopefully something that doesn’t add a lot of inefficiency, as sometimes I need to show dozens of these small images on the screen at once in a ListView?
Try using
android:scaleType="centerCrop"You’ll have to set hardcoded dp dimension on the width and height of your ImageView to get the desired effect this way, but I’m basically using this solution. Well, not really. But if you want to specify the dimensions of the resultant scaled (and cropped) image, you do.
http://developer.android.com/reference/android/widget/ImageView.ScaleType.html