Android: Design

Source: Internet
Author: User

Because the Android layout is generally used in DP units, and we design the general use of PX units, which involves the unit conversion problem, and in mdpi, the screen density of 160,px and DP is 1:1 relationship, so in order to more convenient conversion, in the design of the time, you can consider to MDPI, The 320x480 is the blueprint for the design.
So when we measure pitch 10px with Photoshop, we can label 10DP in the layout.

Correspondence Relationship:

Resource Folder Android Phone screen resolution corresponding icon size screen Density
XHDPI Ultra-High resolution 1280*720 96*96 320
HDPI High resolution 480*800 72*72 240
MDPI Medium resolution 480*320 48*48 160
LDPI Low resolution 320*240 36*36 120

Related articles:

Android: Layout Unit conversions

http://blog.csdn.net/welovesunflower/article/details/7930248

Android: Design

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.