自动完成不会在特定的层次结构中的XML文件的工作 [英] Autocomplete does not work in XML files in particular hierarchy

查看:223
本文介绍了自动完成不会在特定的层次结构中的XML文件的工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在特定的XML节点层次结构如。如预期DrawerLayout-> RelativeLayout->的ImageButton自动完成不起作用。建议列表中包含无效项。例如。 机器人:SRC 未在的ImageButton 显示,而应该是

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:

在另一方面,如果层次RelativeLayout-> RelativeLayout->的ImageButton那么一切都OK。

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

有效的建议:

Valid proposals:

我已经尝试过:

  • 重新打开XML文件 - 不影响
  • 在重新打开项目 - 不影响
  • 重新启动日食 - 不影响

推荐答案

如果内RelativeLayout的是通过&LT移动到另一个XML文件,并包含在内;包括布局=@布局/内部/> 则自动完成的工作。但它是一个肮脏的解决方法,而不是一个真正的解决方案。因此,我不接受这个答案。

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.

这篇关于自动完成不会在特定的层次结构中的XML文件的工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆