How to add string resources in Eclipse?

后端 未结 4 1238
Happy的楠姐
Happy的楠姐 2021-02-07 10:08

Can I have Eclipse adding my string resources as I code or do I have to switch to string.xml all the time and add each string?

4条回答
  •  深忆病人
    2021-02-07 10:40

    The best practice is too have strings.xml inside values folder which keeps all string constants. Because later on if you want to make any change, it will easy for u if u keep in strings.xml. Otherwise you will have to always remember the file where u have wrote that constant.

提交回复
热议问题