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 image and the geometric center point of the Imagview, scaled up ( Image is smaller than the width of the view) the size of the picture is centered so that the picture 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, centered Imageview.scaletype.fit_end|android:scaletype= "Fitend" expands the picture proportionally (shrinks) to the width of the view, displayed in the lower part of the view Imageview.scaletype.fit_start|android:scaletype= "Fitstart" expands 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 proportion, fills the view. Imageview.scaletype.matrix|android:scaletype= "Matrix" with matrix to draw according to my opinion, The types of ScaleType are divided into three categories, the matrix (default), the Fit-x class, and the center class. The matrix doesn't say much. In the Fit-x class, the Fitstart, Fitcenter, and Fitend are all based on the need to make the original changes to ImgviewAdapt, do not trim, draw by matrix, but they differ in the benchmark. The base point of the Fitstart is the top-most point (that is, the point at which the matrix starts) Fitcenter The point of the middle (the point in matrix mode where the picture can be centered), and the Fitend datum point is the point in the lower-right corner (that is, the matrix is the last draw point). In the center class, center, Centercrop, and Centerinside are all based on the geometric center point of the original image and the geometric center point of the Imagview, and only the Imagview-sized images are plotted, and the difference is whether the original size and the drawing target are different. Different means of taking
Android Android:scaletype Properties