我正在尝试创建一个 ADT 布局配置来匹配 EVO 4G 屏幕,其分辨率为 800x480,屏幕为 4.3 英寸。我通过在 SDK 管理器中指定 WVGA800 创建的模拟器似乎与我的物理 EVO 设备完美匹配。
但是,当我尝试创建一个布局设备配置(编辑 XML 视图时选择的配置),无论我到目前为止尝试过的值,我都无法匹配它。默认配置仅包括 3.7" 和 3.7"。然后跳到 5.1 英寸(哇啊,为什么 ADT 开发人员认为 4.3 英寸屏幕不够重要?)。好的,所以我做了一个自定义的,但无论我尝试什么值,我都无法匹配模拟器大小。
有谁知道我必须在布局配置中输入哪些确切值才能使其 100% 匹配? x dpi,y dpi?我在网上找到的值最终与正确的尺寸不匹配。看起来密度需要设置为高,屏幕比例和屏幕尺寸并不重要。
谢谢。
I'm trying to create an ADT layout configuration to match an EVO 4G screen, with its 800x480 resolution and 4.3" screen. The emulator I created by just specifying WVGA800 in the SDK Manager seems to match my physical EVO device perfectly.
However, when I try to create a Layout device config (the one you select when you edit an XML view), I can't match it at all, no matter the values I've tried so far. The default configuration only includes a 3.7" and then jumps to 5.1" (whaaa, why did ADT devs think 4.3" screens weren't important enough?). OK, so I make a custom one, but no matter what values I try, I can't match the emulator size.
Does anyone know what the exact values I must put in to the layout config for it to match 100%? x dpi, y dpi? Values I found online end up not matching the right size. It looks like the Density needs to be set to High, and Screen Ratio and Screen Size don't matter.
Thank you.
发布评论
评论(1)
Artem - 我有和你一样的手机,也有同样的问题。我玩了一下,发现将 x 和 y dpi 设置为 250 是一个非常好的匹配(dpi 设置为“高密度”)。我怀疑它是否是 100%,但目前对我来说已经足够接近了。
如果其他人发现了更好的价值,请发布。
Artem - I have the same phone, and the same problem as you. I played around a bit, and I found that setting the x and y dpis to 250 is a pretty good match (with dpi set to "high density"). I doubt it is 100%, but it is close enough for me for now.
If anyone else has found a better value, please post it.