Check and modify the android: text attribute of xml by using the eclipse ADT (plug-in ).

Source: Internet
Author: User
There are two la s for android development.

This article focuses on the xml method.

Because of the new ADT, the android: text check HardcodeedText (hard-coded (that is, the resource string is not used to represent the string) will be performed on the xml file, so friendly eclipse will issue a warning

You should call it in the @ string method, and then give you an evil yellow warning, actually... There is no problem with one or two yellow colors. When you make a form. When a lot of hard code is used, the evil yellow warning will impede your development speed, because it will also waste your CPU for checking, making eclipse very slow.

Therefore, the focus of this article is to ignore it. Do not check this HardcodeedText (hard-coded)

1. Select Window> preferences in the Eclipse menu bar;

Enter Lint Error in the input box (some eclipse may be different), but most of them are the same

2. Then input hardcode in the Issues: input box.

3. click the Internationalization column to operate Severity. If the operation is not Ignore, click OK and try again to open your xml. Then, the evil yellow warning will not appear... Hahaha

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.