Try to avoid using JPG images in Android development

Source: Internet
Author: User

Because JPG is prone to distortion, it is best to avoid using. jpg images in Android development, instead of using. png images, which uses lossless data compression algorithms derived from LZ77.

In fact, Google has hinted at this:

Found no, these icons are in PNG format under Res. This means that Google recommends using a PNG-formatted image.


Write this, think of a small thing, children's shoes Q: When naming an activity corresponding layout file, how to calculate the specification.

In fact, when we create a new activity, we can also see some clues:

If you create a mainactivity then the default layout file name is: Activity_main
Such a designation is also considered to be a comparative norm and is recommended.


Occasionally, when we meet a small thing not sure how to do it, we might as well look at the way Google uses itself

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.