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.
* 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。
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 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。
相关文章推荐
- Xamarin.Android Get Screen size
- Get the screen size in Android
- android:configChanges="orientation|keyboardHidden|screenSize"真的能固定屏幕吗
- android-Planning for Multiple Touchscreen Sizes,Providing Descendant and Lateral Navigation
- Setting Text to Image On Android and Adjudt the text font size based on the android resolution
- iPhone 6 Screen Size and Web Design Tips
- 关于android上dpi/screen-size的厘清解释
- android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
- Android 4.3 emulator screen stay black and qemu: could not load initrd 'ramdisk.img'
- [转]android detect screen on and screen off
- 【转】ANDROID LOLLIPOP SCREEN CAPTURE AND SHARING
- <Android 应用 之路> MPAndroidChart~BubbleChart(气泡图) and RadarChart(雷达图)
- (重置adb.exe)android关于The connection to adb is down, and a severe error has occured.这个问题的解决办法
- 为什么Android每当启动一个新的应用程序时会通过“throw new ZygoteInit.MethodAndArgsCaller(m, argv)”进入ActivityThread的main函数
- Android-系统自带通知栏and自定义通知栏
- [Android&nbsp;底层开发]&nbsp;如何成为Andro…
- 在网页中使用Winform控件,并调整其大小(using Winform control in ASP.NET and adjust its size)
- make ls and chmod command on android device
- android获得控件在屏幕中的绝对坐标 getLocationInWindow 和 getLocationOnScreen
- Android 1.5 project in Eclipse and whenever I merely have an x