有没有一种方法来禁用XML警告? [英] Is there a way to disable the xml warnings?

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

问题描述

我只是做了我的SDK的更新,现在Eclipse是给我的种种在我的XML完全不必要的警告......比如我有没有一个ID或背景(它实际上是一个透明的一个RelativeLayout的按钮)和Eclipse警告我说,这是一个无用的元素。有没有办法把这个白痴了?

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

推荐答案

在Eclipse ADT插件的新更新会给你新的工具,它的名字是林特这里是一个,这样的链接对这个工具,它的优点。<一个href="http://stackoverflow.com/questions/8656598/when-i-update-my-adt-plugin-for-android-i-get-run-android-lint-what-are-adavant">Click在这里,

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

现在对于那些来自林特Android的工具禁用XML警告,你需要去

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

窗口 - > preferences - > Android的 - >皮棉错误检查

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

在这个对话框中,你会发现所有的问题对XML的Andr​​oid和你可以禁用它,如果你想disable.And确保你不会禁用有用皮棉警告,因为它帮助我们找到有多个ID分配的XML和很多..

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天全站免登陆