What is default scale type of ImageView?

落花浮王杯 提交于 2019-11-27 08:08:55

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!