2011年12月28日 星期三

Android - 解析度 - resolution dpi分別

在Android1.5(含)之前drawable資料夾只有一個,現在分成3個

(1) drawable-ldpi,裡面建議存放低解析的圖片,如QVGA (240x320)

(2) drawable-mdpi,裡面建議存放中等解析的圖片,如HVGA (320x480)
 
(3) drawable-hdpi,裡面建議存放高等解析的圖片如WVGA (480x800),FWVGA (480x854)

(4) drawable-xdpi,裡面存放更大的尺寸(for tablet)

目前市面上典型的分類是
  • QVGA (240x320, low density, small screen)
  • WQVGA400 (240x400, low density, normal screen)
  • WQVGA432 (240x432, low density, normal screen)
  • HVGA (320x480, medium density, normal screen)
  • WVGA800 (480x800, high density, normal screen)
  • WVGA854 (480x854 high density, normal screen)
  • WXGA720 (1280x720, extra-high density, normal screen)
  • WSVGA (1024x600, medium density, large screen)
  • WXGA (1280x800, medium density, xlarge screen)



系統會根據不同Device的解析度到這幾個資料夾裡面去找合適的圖片。


下圖是官網公佈的資訊:
http://developer.android.com/guide/practices/screens_support.html


Table 3. Various screen configurations available from emulator skins in the Android SDK (indicated in bold) 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 1024x600 WXGA (1280x800)
1024x768
1280x768
1536x1152
1920x1152
1920x1200
2048x1536
2560x1536
2560x1600


沒有留言:

張貼留言