我正在为Android构建游戏。我想测试尽可能多的手机和平板电脑分辨率。有人可以告诉我我需要测试的主要分辨率是什么,以便我可以放心,它可以在所有支持Android的手机和桌面上正常运行。
我正在寻找像1024x768 ......等等。这是因为我可以将分辨率设置为统一并在屏幕上进行测试。
答案 0 :(得分:1)
我得到了这个关于Android的可能这将有助于
xlarge screens are at least 960dp x 720dp
large screens are at least 640dp x 480dp
normal screens are at least 470dp x 320dp
small screens are at least 426dp x 320dp
Generalised Dpi values for screens:
ldpi Resources for low-density (ldpi) screens (~120dpi)
mdpi Resources for medium-density (mdpi) screens (~160dpi). (This is the baseline density.)
hdpi Resources for high-density (hdpi) screens (~240dpi).
xhdpi Resources for extra high-density (xhdpi) screens (~320dpi).
Therefore generalised size of your resources (assuming they are full screen):
ldpi
Vertical = 426 * 120 / 160 = 319.5px
Horizontal = 320 * 120 / 160 = 240px
mdpi
Vertical = 470 * 160 / 160 = 470px
Horizontal = 320 * 160 / 160 = 320px
hdpi
Vertical = 640 * 240 / 160 = 960px
Horizontal = 480 * 240 / 160 = 720px
xhdpi
Vertical = 960 * 320 / 160 = 1920px
Horizontal = 720 * 320 / 160 = 1440px
px = dp*dpi/160
答案 1 :(得分:1)
如果您想在Editor
内进行测试,最好设置宽高比并根据需要重新调整窗口。这为您提供了灵活的测试仪,而不是静态分辨率。