Autocomplete does not work in XML files in particular hierarchy

这一生的挚爱 提交于 2019-12-07 03:27:23

问题


In particular XML nodes hierarchy eg. DrawerLayout->RelativeLayout->ImageButton autocomplete does not work as expected. Suggestion list contains invalid items. Eg. android:src is not shown inside ImageButton while it should be.

Invalid proposals:

On the other hand if hierarchy is RelativeLayout->RelativeLayout->ImageButton then everything is OK.

Valid proposals:

I've already tried:

  • reopening XML file - no effect
  • reopening project - no effect
  • restarting eclipse - no effect

回答1:


If inner RelativeLayout is moved to another XML file and included via <include layout="@layout/inner"/> then autocomplete is working. But it is a dirty workaround, not a real solution. So I am not accepting this answer.



来源:https://stackoverflow.com/questions/19135044/autocomplete-does-not-work-in-xml-files-in-particular-hierarchy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!