Solution to blank up and down imageview

Source: Internet
Author: User
Today, when I was doing an application, I found that there was a blank space in the upper and lower part of the imageview, so I knew this attribute:
Android: adjustviewbounds = "true"

If you want to add it, it means whether to maintain the aspect ratio. If you want to use maxwidth and maxheight together on the internet, otherwise it will be ineffective to use it separately. However, I have set another attribute.

Android: croptopadding
Specifies whether to intercept the specified area and use blank space instead. The setting is ineffective and must be used with scrolly:
The following is an XML property map:



Solution to blank up and down imageview

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.