【发布时间】:2017-03-20 08:02:23
【问题描述】:
我列出了 2 个我想要适应的屏幕尺寸(并且还在计数):
我的联想 A536:480 x 854 像素(~196 ppi 像素密度) 和三星 Galaxy S5:1080 x 1920 像素(~432 ppi 像素密度)
并在this page 中列出:320dp、480dp、600dp、720dp 作为“断点”来触发要加载的 xml、css...但我不知道如何对上面列出的屏幕尺寸进行分类(甚至使用公式时)...
请帮忙...谢谢...
【问题讨论】:
-
从文档中复制/粘贴:
minWH[dp value] instructs the system to load the particular layout file when the smaller dimension of the screen (width or height) is at least the value of dp. The minWH[dp value] qualifier does not depend on the device’s orientation. The minW[dp value] and minH[dp value] are similar to minWH[dp value] but work on just one dimension and are orientation dependent.- 这就是您要查找的内容。 -
它并不完全需要使用 320dp、480dp、600dp、720dp..您可以根据需要使用 100dp、150dp、200dp 等..
-
这是您不应该在布局中使用固定尺寸的另一个原因。
-
谢谢...我会研究一下链接,如果我还有问题再回来... :)
标签: android nativescript