Android 布局 AutoCompleteTextView NullPointerException 解决方法

发布于 2024-08-09 22:07:44 字数 235 浏览 3 评论 0原文

我正在使用 Android SDK 2.0 / Galileo / ADT 0.9.4 (迄今为止最新)。 针对Android 1.5 API层。

如果我转到布局编辑器并添加 AutoCompleteTextView,屏幕会立即显示 NullPointerException。

有没有人有解决此问题的记录文件?

我好像找不到一个 这显然是 Android SDK 中的一个错误。 (无论如何,它已经提交了。)

I'm working in with the Android SDK 2.0 / Galileo / ADT 0.9.4 (latest to date).
Against Android 1.5 API layer.

If I go to the layout editor and add an AutoCompleteTextView the screen immediately gives me a NullPointerException.

Does anyone have a documented workaround for this problem?

I can't seem to find one.
This is obviously a bug in the Android SDK. (It's been filed anyway.)

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

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

发布评论

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

评论(1

夜深人未静 2024-08-16 22:07:44

这是布局编辑器的限制。使用 EditText 获得正确的布局,然后在完成布局编辑后将其更改为 AutoCompleteTextView。

this is a limitation of the layout editor. Get your layout right with EditText and then change them to AutoCompleteTextView when you are done editing your layout.

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