-2

请在将其标记为重复之前仔细阅读该问题 我已经尝试过Google Nexus 7 和 10 的 SO Layout 文件夹,但对我没有用。

我正在开发一个可以在标签和手机上运行的应用程序。我创建了以下资源目录: layout-mdpi, layout-hpdi, layout-xhdpi, layout-xxhdpi, layout-xxxhdpi, layout-sw600dp, layout-sw600dp-land, layout-sw600dp-land-tvdpi(用于 nexus 7 土地),layout-sw600dp-tvdpi(用于 nexus 7 肖像),layout-sw800dp, layout-sw800dp-land, layout-sw720dp,layout-sw720dp-land

**同样适用于drawablevalues

我的问题是,在Nexus 10中,它总是取自layout-xxxhdpi(当然不是标签)而不是layout-sw720dpand layout-sw720dp-land

有没有办法为nexus 10创建一个单独的文件夹?

我已经尝试过这些但没有结果:-

layout-sw720dp-land-xhdpi

layout-sw720dp-xxhdpi

4

1 回答 1

0

可能的解决方案是按屏幕尺寸 -layout-large和/或layout-xlarge.
一旦我为高分辨率平板电脑(10 英寸)开发,我不得不使用layout-large.

你也几乎没有那么多目录,研究RelativeLayout、wrap_content、match_parent和密度像素

于 2016-08-02T05:43:28.397 回答