Android Studio easily organizes strings into String.xml

Source: Internet
Author: User

Yesterday learned the great usefulness of Alt+enter shortcut keys, and today found a quick method, must be written down. Reprint please specify the source http://www.cnblogs.com/LT5505/p/5466630.html

1. The string in the first code is as follows:

2, then check the string "Hello World", while holding down alt+enter, you can see pop-up selected dialog, select the "Extract string resource";

3, after selecting, then see Extract Resource dialog box, I here directly fill in the string name is string;

4, click OK, the previous string was successfully organized into the String.xml file, the results, and do not worry about manual changes error.

Follow up: The use of Android studio seems to be not too familiar, or to learn more.

Android Studio easily organizes strings into String.xml

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.