The ScaleType property of the Imgeview if set FITXY is filled with a square layout, if center is centered
Say it in detail:
1) Center: Keep the original size, displayed in the center of the ImageView. When the size of the original image is larger than the size of ImageView, the partial cropping is exceeded.
2) Centercrop: To fill the entire imageview for the purpose, the original image of the center of the center of the ImageView, and so on to enlarge the original image, until the full ImageView (refers to the imageview and high to fill), The original is more than the ImageView part for cutting processing.
3) Centerinside: For the purpose of full display of the original image, the content of the picture is completely centered, by proportionally reducing the size of the original (high) is equal to or less than the width of ImageView (high). If the size of the original is smaller than the size of ImageView, the size of the original is not processed and centered on the ImageView.
4)matrix: Do not change the size of the original image, from the upper left corner of the ImageView to draw the original, the original more than the ImageView part for cutting
5) Fitcenter: Enlarge or narrow the original image to the height of the ImageView ImageView, centering on the display
6) Fitend: Enlarge (shrink) The original image to the height of ImageView, shown in the lower part of the ImageView
7) Fitstart: Enlarge (shrink) The original image to the height of ImageView, shown in the upper part of the ImageView
8) Fitxy: The original image is displayed in the view according to the specified size, stretched to show the picture, does not maintain the original proportions, fills the ImageView.
OK on the first, I will often update the blog and share with you
Imgeview's ScaleType