loopj / android-smart-image-view

Android ImageView replacement which allows image loading from URLs or contact address book, with caching
http://loopj.com/android-smart-image-view/
1.3k stars 510 forks source link

Scaling of images #23

Closed miclovich closed 11 years ago

miclovich commented 11 years ago

Is there a way to scale the images, to make it similar to:

ImageView image;
image = (ImageView)findViewById(R.id.yourImageView1);
image.setScaleType(ImageView.ScaleType.FIT_CENTER);

There is no provision that is similar. I would like to scale images across many android devices. Is this the right approach?

/* some code not shown; smartImageView is basically an instance of SmartImageView */
smartImageView.setImageUrl(data.picture);
smartImageView.setMaxHeight(10);
smartImageView.setMaxWidth(10);

What units are used as parameters for setMaxHeight() and setMaxWidth() or other methods for size setting?

Thanks.