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.
The 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, Scale-up (the picture 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
The imageview.scaletype.center_inside|android:scaletype= "centerinside" is based on the geometric center point of the original and the geometric center point of the Imagview, Displays the contents of the picture in full, by proportionally narrowing the original size so that the picture is long (wide) equal to or less than ImageView long (wide)
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" Displays the picture in the view at the specified size, stretches the picture, does not maintain the original proportions, fills the view.
Imageview.scaletype.matrix|android:scaletype= "Matrix" is drawn with matrix
In 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 used to adapt the original artwork to Imgview, without clipping, and drawing by Matrix, but they
The difference between the is that the datum is different. The base point of the Fitstart is the top-most point (that is, the point at which the matrix starts) the Fitcenter datum is the midpoint of the point
(the point in matrix mode where the picture can be centered), The Fitend datum Point is the point at the lower-right corner (that is, the matrix method is the last draw point). Center class
, center, Centercrop, Centerinside are all based on the geometric center point of the original and the geometric center point of the Imagview, and are drawn only
Imagview the size of the image, the difference is whether to keep the original size of the drawing and the target is different, take a different means