Questions about the adaptation of the Android screen (drawable-xxxxxxxx)

Source: Internet
Author: User
<span id="Label3"></p><p><p>The previous blog said a bit. 9.png pictures http://blog.csdn.net/qq_23195583/article/details/46737419</p></p><p><p>Of course, Point nine refers to the can be stretched, then if the picture does not stretch it, then how to deal with these problems, you can study how other apps are handled, Bo Master downloaded a few app apk, and then looked at the classification, as well as the picture settings</p></p><p><p><br></p></p><p><p>This is Miss no sister's, the side see this app API uses a higher version</p></p><p><p><br></p></p><p><p>This is a embarrassing encyclopedia, and miss no sister's treatment of the same idea</p></p><p><p>And look at the Rest.</p></p><p><p><br></p></p><p><p><br></p></p><p><p>Estimated hilarious jokes with less people, newer is not very frequent, and they are used by the Eclipse developed, good, then they are inside the drawable-xxxx inside are what picture, we can download download their own research, there is XML is encrypted, what is written inside what not to see, But can according to different XXX inside the Picture's placement to infer the XML how they write, ok, first take one to operate, to reverse the reasoning of their manifest file there is no one of the most important permissions</p></p><p><p></p></p><pre name="code" class="java"><pre name="code" class="java"></pre></pre>Is the manifest file inside this, Several applications of the source files I compared a bit, in fact, according to point nine of the files can be stretched without their own to go in each xxxx inside the layout of the corresponding picture, then if each inside a bit nine, it means that his list of files added above the authority, and the other three are not, There is hilarious joke feel not very good deal with this aspect of the problem, because the commonly used pictures do not carry out the size of the separation, basically put in H inside, get them to use the picture is not much, but the other three in different xxx inside put a different picture resources, then they are representative of what?<p><p></p></p><p><p>well, What do they mean?</p></p><p><p>Drawable</p></p><p><p>This directory is generally to place the click of the XML file, do not know if there is no other people in its picture no, but the blogger really did not, this need not elaborate</p></p><p><p><br></p></p><p><p>The original seems to be according to how many inches walk, but now mobile phone screen small resolution, the original Bo Master basic mountain are placed in the hdpi inside, but this can not, if it is flat words may be distorted, but if each inside put a set of resources, APK package will be very large, but the study of the above several applications are so handled , then if you do not need to fine-tune these, but the premise is to ensure that they are not distorted, such as the asynchronous processing of android, if you want to accurately handle their own need for threading and handler if it is not fine, you can use the async,android of the asynchronous processing, Then there is the fact that the APK is not particularly large to define a large size of the picture to use, the problem now needs to be solved is that the picture can not be large but can not be distorted, then how to deal with the problem?!</p></p><p><p>drawable-ldpi</p></p><p><p>This refers to a low-resolution screen.</p></p><p><p>is a low-resolution image to use</p></p><p><p>drawable-mdpi</p></p><p><p>Medium resolution</p></p><p><p>drawable-hdpi</p></p><p><p>High resolution</p></p><p><p>drawable-xhdpi</p></p><p><p>drawable-xxdpi<br>These two are generally used for high-resolution plates.</p></p><p><p>If it is the bottom menu of the program is best to use the square type, and the layout set when the 1:1, there are different xxx files to put different resolutions of the picture is the best solution, if not the strict requirements is to make high-resolution pictures, and then use software compression size, In this way not only to ensure that the picture is not distorted, not deformed, and the image size unchanged, will not cause memory overflow, but it feels bad, because the Android phone screen height and width of the ratio is not fixed, or can be made point nine do point nine, can square square, not the corresponding file to place the corresponding directory, Android 3.0 after the version will be based on the size of the phone to find files in the corresponding directory, it feels that this is a better solution, now is the mobile phone, tablet after the study</p></p> <p style="font-size:12px;"><p style="font-size:12px;">Copyright Notice: This article for Bo Master original article, without Bo Master permission not Reproduced.</p></p> <p><p>Questions about the adaptation of the Android screen (drawable-xxxxxxxx)</p></p></span>

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.