Android Details Knowledge points Summary

Source: Internet
Author: User

ScaleType Properties for 1.ImageView controls: Matrix Fitxy fitstart fitcenter fitend Center Centercrop centerinside

Matrix is used to draw (from the matrix area starting at the top left) fitxy the image to zoom in/out to the view size display (make sure the picture is fully displayed and full of view) Fitstart enlarge/Shrink the picture proportionally to the width of the view. displayed in the upper part of the view (the picture will be displayed in full) fitcenter enlarge/Shrink the picture to the width of the view, centered (the picture will be displayed) Fitend enlarge/Shrink the picture proportionally to the width of the view. displayed in the lower part of the view (the picture will be displayed in full) center by the image of the original size center display, when the picture is wider than the width of the view, then the center portion of the image is captured, when the picture is less than the width of the view, then the picture is centered on the Centercrop proportional expansion/ Reduce the size of the image to the center display, so that the picture is higher than the view, so that the picture width is equal to or greater than the width of the view centerinside the contents of the picture to the full center display, Make the picture scaled down or the original size (picture than view hours) so that the picture width is equal to or less than the width of the view (picture will be full display) picture larger than ImageView: figure is smaller than ImageView:

Android Details Knowledge points Summary

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.