您的位置:首页 > 移动开发 > Android开发

Android screen size and densities.

2011-07-24 14:01 417 查看
Table 1. Screen sizes and densities of emulator skins included in the Android SDK and other representative resolutions.

Low density (120), ldpiMedium density (160), mdpiHigh density (240), hdpiExtra high density (320), xhdpi
Small screenQVGA (240x320)480x640
Normal screenWQVGA400 (240x400) WQVGA432 (240x432)HVGA (320x480)WVGA800 (480x800) WVGA854 (480x854) 600x1024640x960
Large screenWVGA800** (480x800) WVGA854** (480x854)WVGA800* (480x800) WVGA854* (480x854) 600x1024
Extra Large screen600x1024768x1024 WXGA (768x1280) 800x12801152x1536 1152x1920 1200x19201536x2048

1536x2560

1600x2560
* To emulate this configuration, specify a custom density of 160 when creating an AVD that uses a WVGA800 or WVGA854 skin.

** To emulate this configuration, specify a custom density of 120 when creating an AVD that uses a WVGA800 or WVGA854 skin.

***Density-independent pixel(dip):dip是一种虚拟的像素单位,专门用来给程序定义UI用,Android高度推荐使用这个,可以为不同的dip设置不同的资源进行自动切换
pixels = dips * (density / 160)即dip相当于屏幕density=160时的一个像素点,density=160时是一个点显示一个像素,而density=240时是3个点显示两个像素,图像看起来大一些,真实像素只有1280*2/3px,800*2/3px。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: