Android的布局自动完成使用自定义组件时失败
在我的布局我有一个TextView的子类。
In my layout I have a subclass of a TextView.
<com.class.path.views.CustomTextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="HELLO WORLD!"
/>
这工作正常。我的问题是,自动完成不工作。如果我删除的类路径,只是把TextView的,而不是自动完成的工作原理就像一个魅力一次。
This works fine. My problem is that the "auto complete" doesn't work. If I remove the class path and just put TextView instead the "auto complete" works like a charm again.
这心不是一个大问题,但它是一个有点讨厌,当你不记得了的的android:属性的你需要的。
This isnt a big issue but it is a bit annoying when you cant remember the android:properties that you need.
所以我的问题是应这项工作?它是一个记录的缺陷?
So my question is should this work? is it a documented bug?
这是一个已知的问题,这是固定在ADT 12(目前的最新版本是ADT 11)。
This is a known issue and this is to be fixed in ADT 12 (current latest version is ADT 11).
我们已经修复了一些在ADT 12小问题,不值得对自己的博客,但这里有一个快速的综述:结果
...结果
*自定义视图布局内code完成了改进结果
...
We've fixed a number of smaller issues in ADT 12 that don't deserve blog posts on their own, but here's a quick roundup:
...
* Code completion inside a custom view layout has been improved
...