Android UI Design Specifications

Source: Internet
Author: User

First understand several concepts Px,dip (DP), SP,DPI, resolution, etc.

1.px (pixels) pixels – is the pixel, which is the actual pixel unit on the screen.

Dip or DP (device independent pixels) devices independent pixels, related to the device screen.
SP (scaled pixels-best for text size): Similar to DP, mainly handles font size.

DPI (dot per inch): screen pixel density, how many pixels per inch

Density:density represents the number of display points (logical values) per inch, which are DPI

2.DPI is the screen pixel density. is the number of pixels on the 1-inch point. For the screen, the larger the DPI, the higher the fineness of the screen, the more clearly the screen will look. For example, iphone4 's retina-level screen is certainly much higher than the screen pixel density of the iphone 3GS.

3.SP because it is to enlarge the pixel, mainly for the font display, thus according to Google's recommendation, TextView font size is best used SP do units

The 4.DP is not density-independent, and the SP is not related to scale, except for density. If the screen density is 160, then the DP and SP and PX are the same. 1DP=1SP=1PX, but if you use PX as the unit, if the screen size is constant (assuming 3.2 inches), the screen density becomes 320. So the original width of the TextView is set to 160px, in the density of 320 of the 3.2-inch screen is more than the density of 160 of the 3.2-inch screen to see the half-short. But if it is set to 160DP or 160SP. The Width property value is automatically set to 320px. That means 160 * 320/160. 320/160 of these are called density scale factors. That is, if you use the DP and SP, the system will automatically convert based on the change in screen density.

5.dip value = (dpi value/160) * Pixel value

6. Pixel density and resolution are two different concepts, the resolution is the total pixel, pixel density is the unit length of the pixel point

Interface Dimensions

The size of Android is numerous and it is recommended to use a size design with 720x1280 resolution. This size 720x1280 is perfect in the 1080x1920, it looks clearer in the picture, the image file size is also moderate, the memory consumption of the application is not too high.

Status bar Height: 50px

Nav Bar Height: 96px

tab Bar Height: 96px

Android recently out of the mobile phone almost removed the entity keys, the function keys moved to the screen, of course, height is the same as the tab bar: 96px content Area Height: 1038px (1280-50-96-96=1038)

Http://www.25xt.com/appdesign/6536.html

Android UI Design specification

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.