有没有办法禁用xml警告? [英] Is there a way to disable the xml warnings?

查看:193
本文介绍了有没有办法禁用xml警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚做了我的SDK更新,现在eclipse在我的xml中给了我各种各样的不需要的警告...例如我有一个没有id或背景的RelativeLayout(它实际上是一个透明的按钮)和日食警告我,这是一个无用的元素。有没有办法把这个傻子关掉?



TIA

解决方案

在新的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..

这篇关于有没有办法禁用xml警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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