- 我添加了对中文字符串的处理规则,默认使用Pinyin4j将中文拼音设置成String.xml的key
- 默认不选择抽取的数据,需要自己手动勾选
Support for extracting hardcoded strings. This plugin looks for all the hardcoded strings in the project and replaces them with android default resource implementation.
-
Install plugin from marketplace.
-
Enter the required prefix that you want to add before each string resource key and also the Base Application class name. Click here to know how to make a base application class.
-
Click on Extract Strings....wait a minute...and...That's it. You are now following one more best android coding practice.
- Provides custom context
- Automatically imports the necessary classes
- Allow to select/deselect the strings
- You can add a prefix to append before all keys
Also try out EasyLokal Android SDK to give over-the-air string support to your APK and remove the efforts of releasing everytime you update strings in your product.
Created and Supported by EasyLokal