<span style= "FONT-SIZE:18PX;" > imageview.scaletype.center|android:scaletype= "Center" is based on the geometric center point of the original image and the geometric center point of the Imagview, centered on the original size of the picture, not scaled, when the picture is long/ width exceeds the length/width of the view, the center portion of the captured picture displays the size of the ImageView. When the picture is smaller than the width of the view, only the size of the picture is displayed, not clipped. Imageview.scaletype.center_crop|android:scaletype= "Centercrop" is based on the geometric center point of the original and the geometric center point of the Imagview, scaled (the picture is less than the width of the view) The size of the picture is centered so that the image is longer (wide) equal to or greater than the view's length (width), and the image is truncated by the size of the view. When the size of the original image is greater than imageview, proportionally reduce the picture, so that the length of the width of the imageview has always been equal to the other has always been greater than ImageView. In fact, make the original size greater than or equal to ImageView imageview.scaletype.center_inside|android:scaletype= "Centerinside" Based on the geometric center point of the original image and the geometric center point of the Imagview, the content of the picture is completely centered, and the size of the image is scaled to make the picture long (wide) equal to or less than ImageView length (width) ImageView.ScaleType.FIT_ Center|android:scaletype= "Fitcenter" expands the picture proportionally (shrinks) to the width of the view, centering the imageview.scaletype.fit_end|android:scaletype= " Fitend "enlarges (shrinks) the picture to the width of the view, which is displayed in the lower part of the view imageview.scaletype.fit_start|android:scaletype=" Fitstart "enlarges the picture proportionally (shrinks ) to the width of the view, displayed in the upper part of the View imageview.scaletype.fit_xy|android:scaletype= "Fitxy" The picture is displayed in the view according to the specified size, stretches the display picture, does not maintain the original proportions, Fill the view. ImageView.ScaleType.MATrix|android:scaletype= "Matrix" with matrix to draw </span>
Android ScaleType Property Details