Eclipse IDE 中的 Android SlidingDrawer
我正在尝试设计一个使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我也遇到过同样的问题。 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.