Android Studio不支持布局xxhdpi/布局xxlarge
Android Studio上不支持。我想创建一个新的手机布局,如Galaxy S4。我有一个要测试,尺寸太小了。但android studio编译器给出了一个错误,因为正斜杠正在出现。我试过了,但也有错误Android Studio不支持布局xxhdpi/布局xxlarge,android,layout,android-studio,Android,Layout,Android Studio,Android Studio上不支持。我想创建一个新的手机布局,如Galaxy S4。我有一个要测试,尺寸太小了。但android studio编译器给出了一个错误,因为正斜杠正在出现。我试过了,但也有错误 android-apt-compiler: [xxxxxxxxxx] invalid resource directory name: C:\Users\xxxxxxxxxxxxx\Dropbox\android\u studio\u workspace\xxxxxxxxxxxxxx\r
android-apt-compiler: [xxxxxxxxxx] invalid resource directory name:
C:\Users\xxxxxxxxxxxxx\Dropbox\android\u studio\u workspace\xxxxxxxxxxxxxx\res/layout xxlarge
Eclipse是否支持这些布局?如您所见,“为Android 3.2声明平板电脑布局”一节:
对于运行安卓3.0的第一代平板电脑,适当的
声明平板电脑布局的方法是将它们放在具有
xlarge配置限定符(例如,res/layout xlarge/)。在里面
以适应其他类型的平板电脑和屏幕尺寸
特别是,7英寸平板电脑安卓3.2引入了一种新的方式来指定
更多离散屏幕尺寸的资源。新技术基于
根据布局所需的空间量(例如600dp的宽度),
而不是试图使您的布局适合通用的大小组
(如大的或大的)
您所能得到的最好结果是:
res/layout-xlarge-land/my_layout.xml // layout for extra large in landscape orientation
您需要的已经定义。使用eclipse是最好的方法,不要使用android studio(仍为测试版)直到稳定版本发布!我试着制作一个名为layout-sw600dp/layout-sw1080dp/layout-w1080dp的文件夹,但它一直使用默认的布局文件夹和hdpi。你在哪台设备上测试它?是的,那么很明显你的问题来自
AndroidStudio
本身。我不乐意这么说,但它有很多问题。呵呵wever,如果你切换到Android Eclipse SDK,你的问题可能会消失。现在试试这个,AndroidStudio
仍然是测试版…在Android Studio使用Eclipse之前,我只是喜欢Android Studio的外观和工作方式,我想它太快了,无法完全使用。谢谢。如果你喜欢Android Studio,你可以尝试一下IntelliJ的想法,我已经在Android开发中使用它大约两年了,它的工作原理与Android Studio一样,缺少一些更新(但有缺陷)的部分:)