What is default scale type of ImageView?
问题 I can set options for scaling the bounds of an image to the bounds of an ImageView using setScaleType(ImageView.ScaleType) . What is default ImageView.ScaleType ? 回答1: Looks to be ScaleType.FIT_CENTER: private void initImageView() { mMatrix = new Matrix(); mScaleType = ScaleType.FIT_CENTER; } Links to GrepCode ImageView.java: (Android 1.5r4), (Android 4.1.1r1) 来源: https://stackoverflow.com/questions/13828720/what-is-default-scale-type-of-imageview