当我更新我的ADT插件为Android我得到运行Android皮棉,什么是它的adavantages用它来Android项目?我的、皮棉、它的、当我

2023-09-06 15:14:24 作者:瑾言

每一个在这里

在更新我的ADT插件ADT 16,我得到它运行时我运行它之后,我选择Android项目的Andr​​oid林特一个新的(工具)的东西它给我更多的550报警有关项目为Android。应我必须遵循提醒受皮棉我的资源像String.xml和一些布局的使用在我的活动。

When i update my ADT plugin to ADT 16 i get One new (Tool)thing which is run android Lint when i run it after select my android project it give me more 550 warning related to project for android .should i have to follow advise by Lint for my resource like String.xml and some of layout use in my activity .

要了解更多关于林特我指的这个技巧在这里是点击此处 这也给我警告象下面这样:

For Knowing more about Lint i refer this tips here is Click here It also Give me Warning Like Below :

硬codeD字符串东西,应使用@string资源

Hardcoded string "AnyThing", should use @string resource

所以我认为这是林特将有助于在Android的资源问题。

So what i think is Lint will help for resource problem in android.

如果您有关于Android皮棉件事然后让我知道。

If you have more thing about android lint then let me known .

和我应该怎么做将这个XML皮棉,我应该在这里把这个XML项目的根或任何其他目录。

and what should i do will This xml for lint and where should i put this xml in project root or any other directory.

<?xml version="1.0" encoding="UTF-8"?>
<lint>
</lint>

和我也越来越此警告[辅助]上的图像丢失 contentDescription 属性对的ImageView 。同时采用了android皮棉

and i also getting This Warning "[Accessibility] missing contentDescription attribute on image" for ImageView. while using android lint

我想通过给下面的东西像下面图片:

I think by giving following things like below To Images:

 android:contentDescription="@string/desc"

这定义文本简要介绍了视图的内容。此属性主要用于辅助功能。由于某些观点不具备文字重presentation这个属性可以用来提供这样的。

This defines text that briefly describes content of the view. This property is used primarily for accessibility. Since some views do not have textual representation this attribute can be used for providing such.

非文本的小部件如 ImageViews ImageButtons 应使用 contentDescription 属性来指定窗口小部件的文字描述,使屏幕阅读器等辅助工具可以充分说明了用户界面。

Non-textual widgets like ImageViews and ImageButtons should use the contentDescription attribute to specify a textual description of the widget such that screen readers and other accessibility tools can adequately describe the user interface.

推荐答案

我试过皮棉只是为了好玩。我能说什么。这是为Android专门开发一个类型的静态分析工具。因此,Android应用程序开发人员可以运行在他/她的code自动静力试验。

I've tried lint just for fun. What I can say. It's a type of static analysis tool that is developed specifically for Android. Thus, a developer of Android applications can run automatic static tests across his/her code.

您可以运行皮棉在Eclipse只需pressing按钮在面板(在我的情况下,该按钮是近AVD管理。在这之后的Eclipse打开其中显示所有侵犯皮棉规则的窗口。你可以的按钮双击错误并改正它。作为一个静态分析工具,它可以有误报。

You can run lint in Eclipse simply pressing on button in the panel (this button in my case is near the button of AVD Manager. After that Eclipse opens a window where all violations of lint rules are displayed. You can double click on the error and correct it. As a static analysis tool it can have false positives.

的皮棉工具已被供给的嵌入规则的数量。您可以了解他们在此皮棉页。

The lint tool has been already supplied with the number of embedded rules. You can read about them on this lint page.

对于皮棉的XML文件,我不知道该怎么办。

As for lint xml file, I don't know what to do with it.