Android 找不到 XLargeScreens 的资源标识符

发布于 2024-10-12 01:10:14 字数 545 浏览 3 评论 0原文

我希望我的 Android 应用程序能够与尽可能多的设备兼容,因此我自然会尝试使其为所有新推出的平板电脑做好准备。不幸的是,当我添加:

android:xlargeScreens="true"

到我的清单时,它给了我这个错误:

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

现在我对这一切还很陌生,但从我读到的内容来看,这与我的最小/目标 SDK 太低而无法支持有关这是一个全新的功能等等。我确实尝试提高我的目标 SDK,因为我认为这不是问题,但这使得我的大部分代码“无法解析”。我确信这对于那些比我更了解 Android 的人来说是有意义的,但我真正想知道的是是否有一种方法可以启用对“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. 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. 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". 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".

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!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

折戟 2024-10-19 01:10:14

android 清单标签 android:xlargeScreens="true" 似乎不再被识别,但如果你有layout-xlarge 文件夹也没关系。
此外,xlarge 现在是 Honeycomb 的 SDK 11 内容,因此它是一个全新的范例。

我建议原谅谷歌在快速发展的数字世界中偶尔出现的不一致之处。

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.
Also, xlarge is now SDK 11 stuff for honeycomb, so its a whole big new paradigm.

I suggest forgiving google for occasional inconsistencies in a fast moving digital world.

谷夏 2024-10-19 01:10:14

我有类似的问题。我的小部件未在 3.2 平板电脑设备中列出。

以下选项就足够了:

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

I had a similar problem. My widget was not listed in a 3.2 tablet device.

These following options were sufficient:

android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:anyDensity="true"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文