无法在 Android Studio 中的 XML 文件中自动完成 [英] Can't auto complete in XML files in Android Studio
问题描述
有没有办法在 Android Studio 中自动完成 XML 文件?例如:当我开始输入 RelativeLayout 时,我希望 Android studio 能够识别它并给我一个我可以填写的准系统原型.有什么方法可以启用它吗?
Is there any way to auto complete in XML files in Android studio? Eg: When I start typing RelativeLayout, I want Android studio to recognize it and give me a bare-bones prototype that I can just fill in. Is there any way to enable this?
我检查了其他答案,我的省电模式已关闭,而且我没有使用任何外部库.
I checked other answers and my power save mode is off and I'm not using any external libraries.
推荐答案
我终于注意到,只有我正在处理的当前 XML 文件有问题,并且在 WYSWYG 编辑器中定义的相对布局中.不知道为什么,重写它,一切都好起来.
I finally notice it was only the current XML file I was working on which had the issue, and inside a relative layout that have been defined from the WYSWYG editor. Don't know why exactly, rewrite it and everything fine again.
这篇关于无法在 Android Studio 中的 XML 文件中自动完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!