Avoid using JPG images during Android Development

Source: Internet
Author: User

Avoid using JPG images during Android Development

Due to the fact that jpgcontent is easy to use, the use of .jpg images should be as full as possible in androiddevelopment, and the use of .png images, it uses a lossless data compression algorithm derived from LZ77.

In fact, Google has already hinted at us:

No. In res, these icons are all in png format. That is to say, Google recommends png images.


This reminds me of a small matter. My shoes asked: how can I standardize the layout file corresponding to an Activity.

In fact, when we create an Activity, we can also see some clues:

If you create a MainActivity, the default layout file name is activity_main.
Such a name is also relatively standard and recommended.


Even when we encounter a small thing that is not sure how to do it, let's take a look at Google's own method.


Related Article

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.