且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

有没有办法禁用xml警告?

更新时间:2022-10-19 21:58:13

在新的Eclipse ADT插件更新将给你新工具哪个名称是Lint这里是一个SO链接这个工具,它的优势。点击这里



现在,为了从Lint Android工具中删除xml警告,你需要去



窗口 - >首选项 - > Android - > Lint Error Checking



在这个对话框中,您将在Android中找到Xml的所有问题,您可以禁用它,如果要禁用。确保您不会禁用有用的lint警告,因为它有帮助我们找到有多个ID分配在xml和更多..


I just did an update of my SDK and now eclipse is giving me all sorts of totally unwanted warnings in my xml... for example I have a RelativeLayout that doesn't have an id or a background (it's actually a transparent button) and eclipse is warning me that it's a useless element. Is there a way to turn this idiocy off?

TIA

In New Update of Eclipse ADT Plugins will give you New Tool Which Name is Lint here is one SO Link for this tool and it's advantages .Click Here

Now for Disable xml Warnings that are come from Lint Android Tool ,you need to go

Window-->Preferences-->Android-->Lint Error Checking

in this Dialog you will find all Issue for Xml in android and you can make disable it ,if you want to disable.And Make sure you will not disable usefull lint warning because it's help us to find there are multiple ID assign in xml and lot more..