Are there any side-effects of using multiple string.xml files?

南笙酒味 提交于 2019-11-30 07:51:17

As stated in the documentation you can use whatever filename you want:

The filename is arbitrary. The <string> element's name will be used as the resource ID.

There is NO / Negligible side effects in performance, you can add as much as you can. But make them clean ... Let say I have 3 activity files MainActivity, PhotoActivity, UserActivity etc... create on common strings.xml file and other activity related files.

-strings.xml                    -> create common string values here.
  --strings_main.xml            -> create main activity specific string values here.
  --strings_photo.xml           -> ...
  --strings_user.xml            -> ... etc etc

Hope this is helpful. Thanks!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!