I answer the same question (continued five)

Source: Internet
Author: User

This piece of article from Http://blog.csdn.net/andywuchuanlong, reproduced please explain the source, thank you!

I'll answer the question. Serial Directory http://blog.csdn.net/andywuchuanlong/article/details/44194043

6, in the project art general to us to cut a few sets of pictures, to be able to fit the Android fragmented terminal?

This issue is part of the Android Terminal screen adaptation. Readers can access my article, "Android screen adaptation," And I can probably answer that question.

I'm just going to talk about how the adaptation of my project is done here. In the project I usually only cut a set of diagrams, this set of pictures placed under the hdpi directory, so that some places may not fit, it is necessary to cut some individual diagrams, but the overall workload is only a set of work.

The reader may be wondering why you would cut out the 娿 picture under the hdpi directory instead of the other mdpi, xdpi directory? I think there are two reasons.

1th: If placed in the MDPI directory, then the picture to the high-resolution terminal above will appear fuzzy situation, the user experience is too poor, if placed in xdpi above the directory, then these pictures in the MDPI directory, there may be memory crashes.

              2nd: Now the most screen resolution on the market is 480*800, so for this adaptation is good, the other re-repair adaptation. So 480*800 and hdpi What's the relationship? We can use math to calculate it. 480* 800 represents the screen is 4.0 inches, we can calculate the terminal density in this case, ((480^2 + 800^2) open root)/4 inches = 233, 233 is close to 240. And 240 is the screen density represented by hdpi. So fit 480* The 800 screen is best suited for the hdpi directory.

so how do you cut the figure on the 480*800? This will take a look at my last article "Android screen adaptation" . I'll also tell you about my plan for cutting. If a 20*20 or 30*30 icon fits on the 480*800. So how big should it be on top of the xdpi? The xdpi is corresponding to the 720*1280 resolution, which is a 2:3 relationship between the two resolutions .Font-family:arial of

        above is impossible to solve all the problems, specific problems specific treatment!

I answer the same question (continued five)

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.