user1301568
user1301568

Reputation: 2143

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?

Upvotes: 5

Views: 4937

Answers (1)

Cat
Cat

Reputation: 67502

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

Upvotes: 16

Related Questions