如何打开XML属性检查器

时间:2017-06-18 17:19:23

标签: android xml

我最近禁用了XML属性检查器,该检查器会在运行应用程序之前实时提示XML中的消息。现在,因为我禁用它,我只能在运行应用程序时看到错误。

enter image description here

如何启用即时"属性检查器"回来?

它将显示为XML左侧的红色灯泡,例如:

enter image description here

2 个答案:

答案 0 :(得分:0)

文件>设置>编辑器>代码样式>检查>

尝试检查/取消选中某些Android> Lint> ...

答案 1 :(得分:0)

Android Studio -> Preferences -> Editor -> Inspections

按右上角的“重置”,如果不存在,则搜索“xml”并根据需要检查相应的字段。