【问题标题】:No code completion in XML code within fully qualified tag完全限定标记内的 XML 代码中没有代码完成
【发布时间】:2011-03-21 09:54:09
【问题描述】:

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

自动补全在我的其他代码上运行良好,这些代码没有嵌入到完全限定的标签中......

【问题讨论】:

  • 这只是一个错误...您可以向 Android 插件开发人员提交错误报告。

标签: android xml eclipse layout


【解决方案1】:

我也注意到了这个问题,我讨厌它。

我偶然发现了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" />

当我使用这种方法时,代码完成的效果要好得多。但它仍然只有“视图”类属性可见。

【讨论】:

    【解决方案2】:

    只是提醒其他阅读本文的人。现在在 ADT 12.0 中是 fixed

    • 改进了自定义视图布局中的代码完成

    【讨论】:

      猜你喜欢
      • 2014-04-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-08
      • 2017-11-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多