代码之家  ›  专栏  ›  技术社区  ›  Brad Hein

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

  •  2
  • Brad Hein  · 技术社区  · 14 年前

    例如,在下面的代码(注释为)中,不会为成员名/标记名提供自动完成功能。

    <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>
    

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

    2 回复  |  直到 14 年前
        1
  •  1
  •   khendricks    14 年前

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

    我只是偶然发现 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
  •  1
  •   Tony Chan    13 年前

    fixed 在ADT 12.0中:

    • 自定义视图布局内的代码完成已得到改进