- px = dp * (dpi / 160)
- dp = px /(dpi/160)
- dpi type = squrt(xx + yy) / inch
- sqrt(xx + yy) / dpi type = inch
Examples:
- not2 5.5" 1280*720 pixels
- 267 dpi -> xhdpi
- Amazon Kindle Fire HD 7" 16GB 7" 1280 x 800 pixels
- Google Nexus 7 16GB 7" 1280 x 800 pixels
- 191 dpi -> hdpi
- ASUS Eee Pad Transformer Prime TF201 32GB 10.1" 1280 x 800 pixels
- SAMSUNG GALAXY Note 10.1 Wi-Fi 10.1" 1280 x 800 pixels
- 132 dp -> mdpi
dpi
- ldpi: ~ 120 dpi
- mdpi: 120 dpi ~ 160 dpi
- hdpi: 160 dpi ~ 240 dpi
- xhdpi: 240 dpi ~ 320 dpi
dp to screen size examples:
- 480 dp
- 480 mdpi
- 480 px -> 4" ~ 3"
- 720 hdpi
- 1080 px -> 9.5" ~ 6.3"
- 960 xhdpi
- 1920 px -> 11.3" ~ 8.4"
- 600 dp, about 7"
- 600 mdpi
- 600 px -> 7" ~ 5.3"
- 900 hdpi
- 1350 px -> 11.9" ~ 7.9"
- 1920 xhdpi
- 3840 px -> 22.6" ~ 16.9"
沒有留言:
張貼留言