Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/207.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何处理android多尺寸屏幕分辨率?_Android_Android Layout - Fatal编程技术网

如何处理android多尺寸屏幕分辨率?

如何处理android多尺寸屏幕分辨率?,android,android-layout,Android,Android Layout,我制作了一个应用程序,我还使用layout,layou-large,layou-x-large文件夹来处理XML。 但当我在3.7和4.7英寸的设备上测试我的应用程序时……它们都从普通布局大小的文件夹中获取XML,并从7英寸的选项卡中获取布局大XML。 那么对于3.7到5.5英寸之间的布局应该怎么做呢?? 感谢您的帮助。如果您的min sdk超过13,请尝试使用layout-sw600dp。。。而且布局不太大 例如,如果多窗格平板电脑布局要求屏幕宽度至少为600dp,则应将其放置在layout-

我制作了一个应用程序,我还使用layout,layou-large,layou-x-large文件夹来处理XML。 但当我在3.7和4.7英寸的设备上测试我的应用程序时……它们都从普通布局大小的文件夹中获取XML,并从7英寸的选项卡中获取布局大XML。 那么对于3.7到5.5英寸之间的布局应该怎么做呢??
感谢您的帮助。

如果您的min sdk超过13,请尝试使用layout-sw600dp。。。而且布局不太大

例如,如果多窗格平板电脑布局要求屏幕宽度至少为600dp,则应将其放置在layout-sw600dp/中

看一看:


除了布局文件夹,还可以尝试使用密度相关的布局。就像我们用于可绘制文件夹一样。
例如hdpi、xhdpi、xxhdpi。

我相信屏幕大小并不重要,但PPI(每英寸像素数)是重要的。虽然如果我错了,应该有人纠正我