android - 完全限定标记内的 XML 代码中没有代码完成

标签 android xml eclipse layout

为什么完全限定标签中的代码在 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/

相关文章:

在 Fedora 16 上启动新安装的 Eclipse 时出现 java 错误

android - 测试项目图标在android中不可见

java - 如果我在 Android 中使用单独的线程更新 UI 会不会很糟糕?

Android:JSON 或 XML,缓存

xml - 使用命名空间时无法复制和修改 XSLT 中的属性

eclipse - Subclipse显示文件夹冲突,无法合并

java - Gradle 构建失败 : Error:Execution failed for task ':app:processDebugResources' . > java.nio.charset.MalformedInputException:输入长度 = 1

android - 如何向下滚动网页

php - 使用 NuSOAP 检索结果时出现 XML 错误(无效字符)

eclipse - 如何在 Eclipse 中调试 JComboBox 的 actionEvent 的处理并避免锁定窗口系统?