Android screen size and densities.
发布日期:2021-11-16 18:19:12 浏览次数:2 分类:技术文章

本文共 1095 字,大约阅读时间需要 3 分钟。

Table 1. Screen sizes and densities of emulator skins included in the Android SDK and other representative resolutions.
  Low density (120), ldpi Medium density (160), mdpi High density (240), hdpi Extra high density (320), xhdpi
Small screen QVGA (240x320)   480x640  
Normal screen WQVGA400 (240x400) WQVGA432 (240x432) HVGA (320x480) WVGA800 (480x800)  WVGA854 (480x854)  600x1024 640x960
Large screen WVGA800** (480x800) WVGA854** (480x854) WVGA800* (480x800)  WVGA854* (480x854)  600x1024    
Extra Large screen 600x1024 768x1024 WXGA (768x1280) 800x1280 1152x1536 1152x1920  1200x1920 1536x2048
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。

转载地址:https://blog.csdn.net/taoshengyang/article/details/6629557 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:java serilization
下一篇:Ubuntu 64 Android generic error resolution

发表评论

最新留言

表示我来过!
[***.240.166.169]2024年04月17日 11时56分00秒

关于作者

    喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!

推荐文章