Eclipse IDE 中的 Android SlidingDrawer

发布于 2024-08-25 14:52:48 字数 418 浏览 3 评论 0原文

我正在尝试设计一个使用 SlidingDrawer 的 Android 应用程序,但我无法使用表单(布局?)设计器添加此元素而不产生异常“IllegalArgumentException:handle 属性是必需的并且必须引用给一个合格的孩子。”

截至 3 月 17 日,我相信我已经拥有最新的所有内容(Eclipse 和 Android SDK)。

所有SDK组件均已安装。

我创建了两个 Android 虚拟设备,一个用于 1.0 版本,另一个用于 2.1 版本,当时我发现 1.0 不支持 SlidingDrawer。

我尝试导入 SDK 中提供的示例,以及我从网上找到的其他几个布局,所有这些都会产生相同的异常。

我的编程背景主要是C++,我认为自己是一个新手程序员,所以请随意和我说话,就像我是一个白痴一样,这样我就会理解。 ^^;

I am trying to design an application for Android that makes use of the SlidingDrawer, but I have not been able to use the form (layout?) designer to add this element without producing an exception "IllegalArgumentException: The handle attribute is required and must refer to a valid child."

As of March 17th, I believe I have everything up to date (Eclipse, and the Android SDK).

All the SDK components have been installed.

I have created two Android virtual devices, One for version 1.0, and one for version 2.1 when I figured out that 1.0 didn't support the SlidingDrawer.

I have tried importing the samples provided in the SDK, as well as several other layouts from the web that I have found, all of which produce this same exception.

My programming background is mostly C++, and I consider myself to be a novice programmer, so feel free to talk to me as if I were an idiot so that I will understand. ^^;

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

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

发布评论

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

评论(1

蹲在坟头点根烟 2024-09-01 14:52:48

我也遇到过同样的问题。 Google 代码中存在一个相关的 Android SDK 错误。此外,还有一个关于 android-developers 的讨论,其中Android 开发人员列出了一些可能导致该问题的原因。不管怎样,我仍然相信存在一个错误,因为我已经尝试了所有建议。

I've come across the same problem. There is a relevant Android SDK bug filed on Google code. In addition, there is a discussion on android-developers where an Android developer lists a few things that may cause the issue. Either way, I still believe that there is a bug, since I tried all the suggestions already.

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