What is default scale type of ImageView?

后端 未结 1 1509
萌比男神i
萌比男神i 2020-12-11 19:01

I can set options for scaling the bounds of an image to the bounds of an ImageView using setScaleType(ImageView.ScaleType).

What is default

相关标签:
1条回答
  • 2020-12-11 19:28

    Looks to be 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

    0 讨论(0)
提交回复
热议问题