Extract all hardcoded strings to string resource

前端 未结 4 2211
温柔的废话
温柔的废话 2020-12-05 15:15

I know there is Alt + Enter combination to extract single String to string resource. But I am wondering is there anything that I can extract all string

4条回答
  •  星月不相逢
    2020-12-05 15:39

    In Android 3.2.1 you can go to Edit->Find->Find In Path... and then search for android:text=" . This will give you a list of all the hardcoded strings in xml files.

    Search for Toast.makeText to find all the toast items from the java files.

    Search for setText(" to search for text sets in java files and so forth.

    You can do searches like this for items you would like to find throughout the project and replace.

提交回复
热议问题