Http://blog.sina.com.cn/s/blog_98a0937f0100ylcz.html Original: beebot
Introduction to Android lint
(18:24:07)After being simple and practical, I found that this tool is too powerful.It can perform a comprehensive analysis on your android project and then give you a diagnostic result.Tell your project what is inappropriate, such:1. If the resource files introduced in the project are not used in the code, a prompt is displayed. Including image resources, layout files, and defined string constants and color constants.
2. If the layout file is written incorrectly, a prompt is displayed. For example, if you write Chinese characters directly in XML, you will be reminded to write the text to the string configuration file.
If you set the variable defining the image size to PX, you will be prompted to change it to DP if it is not standard.
Improper use of layout attributes, repeated ID definitions, and nonstandard use of tags will prompt you to modify the layout attributes. 3. Considering screen adaptation, if some images are only placed in high resolution, you will be reminded to place a copy in a folder with medium or low resolution. ...... There are still a lot of prompts, which are where the project code is not standard. Currently, this tool is very practical, it is very helpful for optimizing code, finding useless resources, and slimming APK before project packaging and publishing. Write so much first. We will share with you any new discoveries in the future.