I can set options for scaling the bounds of an image to the bounds of an ImageView using setScaleType(ImageView.ScaleType).
ImageView
setScaleType(ImageView.ScaleType)
What is default ImageView.ScaleType?
ImageView.ScaleType
Looks to be ScaleType.FIT_CENTER:
ScaleType.FIT_CENTER
private void initImageView() { mMatrix = new Matrix(); mScaleType = ScaleType.FIT_CENTER; }
Links to the source code of ImageView: Android 4.1.1 r6.1
2.1m questions
2.1m answers
60 comments
57.0k users