Android find all hardcoded strings in code using Android Studio

前端 未结 4 482
轮回少年
轮回少年 2020-12-16 13:24

I want to find all hard-coded strings in my code to move them into strings.xml file for future localization. Such as :

Toast.ma         


        
4条回答
  •  悲哀的现实
    2020-12-16 13:56

    It seems it has been already answered here, isn't it relevant for your problem ? Edit : just don't forget to check "File mask(s)" box in the window after having typed "Hardcoded text", and select *.java, if you want to search in Java files.

    And after you found all your hardcoded strings, this may help you to transfer them to XML.

提交回复
热议问题