Android的布局自动完成使用自定义组件时失败 [英] Android Layout Auto Complete fail when using custom component

查看:82
本文介绍了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
...

来源: http://tool​​s.android.com/recent/adt12bugfixroundup

这篇关于Android的布局自动完成使用自定义组件时失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆