简体   繁体   English

Android没有找到XLargeScreens的资源标识符

[英]Android No Resource Identifier Found for XLargeScreens

I would like my Android app to be compatible with as many devices as humanly possible, so naturally I would like to try to make it ready for all of the new incoming tablets. 我希望我的Android应用程序能够与尽可能多的设备兼容,所以我很自然地想要为所有新传入的平板电脑做好准备。 Unfortunately when I add : 不幸的是,当我添加:

android:xlargeScreens="true"

To my Manifest, it gives me this error : 对我的清单,它给了我这个错误:

error:No resource identifier found for attribute "xlargeScreens" in package 'android'

Now I'm fairly new to all of this yet, but from what I've read this has something to do with my min/target SDK's being too low to support this, being a brand new feature and all. 现在我对所有这些都相当新,但从我所看到的,这与我的min /目标SDK太低而无法支持这一点有关,是一个全新的功能。 I did try raising my target SDK up since I thought that wasn't a problem, but that made most of my code "unable to be resolved". 我确实尝试提高我的目标SDK,因为我认为这不是问题,但这使我的大部分代码“无法解决”。 I'm sure that makes sense to those of you that have been around Android a little longer than myself, but what I'm really wondering is if there is a way for me to enable support for "xlargeScreens". 我相信那些在Android上比我自己长一点的人是有道理的,但我真的很想知道是否有办法让我支持“xlargeScreens”。

Perhaps there is some other way, or maybe it's not even necessary to have that line to allow it to work with them. 也许还有其他一些方法,或者甚至没有必要让那条线允许它与它们一起工作。 Perhaps because it's a new addition I've had trouble finding anything that answered this for me, so any suggestions would be great. 也许是因为这是一个新的补充,我很难找到任何能够为我解答的东西,所以任何建议都会很棒。 Thank you for your help! 谢谢您的帮助!

The android manifest tag android:xlargeScreens="true" does not seem to be recognized anymore, but it does not matter if you have layout-xlarge folder. android清单标签android:xlargeScreens =“true”似乎不再被识别,但是如果你有layout-xlarge文件夹则无关紧要。 Also, xlarge is now SDK 11 stuff for honeycomb, so its a whole big new paradigm. 此外,xlarge现在是用于蜂窝的SDK 11的东西,所以它是一个全新的大范例。

I suggest forgiving google for occasional inconsistencies in a fast moving digital world. 我建议原谅谷歌在快速移动的数字世界中偶尔出现不一致的情况。

I had a similar problem. 我遇到了类似的问题。 My widget was not listed in a 3.2 tablet device. 我的小部件未列在3.2平板电脑设备中。

These following options were sufficient: 以下这些选项就足够了:

android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:anyDensity="true"

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 找不到android:elevation的资源标识符 - no resource identifier found for android:elevation 在包“android”中找不到属性“textsize”的资源标识符 - No resource identifier found for attribute 'textsize' in package 'android' “在包‘android’中找不到属性‘showAsAction’的资源标识符” - "No resource identifier found for attribute 'showAsAction' in package 'android'" 在Android套件中找不到属性'indeterminateTintMode'的资源标识符 - No resource identifier found for attribute 'indeterminateTintMode' in package Android 在包“ android”中找不到属性“ fullBackupContent”的资源标识符 - No resource identifier found for attribute 'fullBackupContent' in package 'android Xamarin android在包中找不到属性的资源标识符 - Xamarin android No resource identifier found for attribute in package 在'android'包中找不到属性'appComponentFactory'的资源标识符 - No resource identifier found for attribute 'appComponentFactory' in package 'android' 在包“ android”中找不到属性“ parentActivityName”的资源标识符 - No resource identifier found for attribute 'parentActivityName' in package 'android' 错误:找不到Android支持设计的资源标识符 - Error: No resource identifier found for Android Support Design 在包android中找不到属性'filterTouchesWhenObscured'的资源标识符 - No resource identifier found for attribute 'filterTouchesWhenObscured' in package android
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM