Imgeview's ScaleType

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.