gpt4 book ai didi

使用自定义组件时 Android 布局自动完成失败

转载 作者:行者123 更新时间:2023-11-30 04:38:51 27 4
gpt4 key购买 nike

在我的布局中,我有一个 TextView 的子类。

        <com.class.path.views.CustomTextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="HELLO WORLD!"
/>

这很好用。我的问题是“自动完成”不起作用。如果我删除类路径并只放置 TextView 而不是“自动完成”,那么“自动完成”将再次发挥作用。

这不是什么大问题,但是当您记不起所需的 android:properties 时,这会有点烦人。

所以我的问题是这可行吗?这是一个记录在案的错误吗?

最佳答案

这是一个已知问题,将在 ADT 12 中修复(当前最新版本是 ADT 11)。

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://tools.android.com/recent/adt12bugfixroundup

关于使用自定义组件时 Android 布局自动完成失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6361694/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com