为什么完全限定标签中的代码在 Eclipse 中缺少自动完成功能?
例如,在下面的代码(注释所在的位置)中,我键入的任何内容都不会自动完成成员名称/标签名称。
<android.gesture.GestureOverlayView
android:id="@+id/gesturePage01"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1.0">
<!-- All code entered here lacks code completion -->
</android.gesture.GestureOverlayView>
自动完成在我的其他代码上工作正常,这些代码没有嵌入完全限定的标签中......
最佳答案
我也注意到了这个问题,我讨厌它。
我只是偶然发现了 this
尝试:
<view
class="com.android.notepad.NoteEditor$MyEditText"
id="@+id/note"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@android:drawable/empty"
android:padding="10dip"
android:scrollbars="vertical"
android:fadingEdge="vertical" />
当我使用这种方法时,代码补全的效果要好得多。不过,它仍然只有“View”类属性可见。
关于android - 完全限定标记内的 XML 代码中没有代码完成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3340557/