Android drawable folder description

Source: Internet
Author: User

Someone will definitely be curious about the three places where images are placed on Android, such as drawable-hdpi, drawable-mdpi, drawable-ldpi, where images are placed in Android.

Certainly in the mind will think, put in which all can, as long as is in the Android in the Res directory drawable in the line, the system will find itself.

A friend of his heart would surely have made a man out of it. I used to drawable-hdpi, drawable-mdpi, drawable-ldpi These three have also understood, but only literally, did not really understand thoroughly, until today I was a little bit deeper understanding.

drawable-hdpi look at his word name must know he is placed high-resolution pictures, drawable-mdpi to place a medium-resolution picture, DRAWABLE-LDPI place a low-resolution picture.

Most people put pictures in the drawable-mdpi. At first I thought it would be all right to place the picture in any of the three, but today I know it.

Placing a picture in a drawable-mdpi when the resolution is lower than 480*800 will have no effect, but when the resolution is 420*800 or above it can be problematic.

Your phone screen is so big but he will stretch the picture, and when the picture is loaded it makes you feel that the screen is not actually size, and if you put the picture in drawable-hdpi, the problem doesn't exist.

Android drawable folder description

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.