我目前正在创建(> 300现在)有一些字符串的应用程序,我有一些问题可以迅速找到字符串,有这么多的人。
所以我正在考虑使用的可能性几个 string.xml
文件,而不是只有一个(STRING_MENU,string_activity1,...)。
I am currently creating an application that have some strings (>300 for now) and I have some problems to quickly find a string with so many of them.
So I was considering the possibility of using several string.xml
files instead of only one (string_menu, string_activity1, ...).
有没有副作用这种做法?它是一个坏的还是好的做法呢?
Is there any side-effect with this practice? Is it a bad or a good practice?
我问这个,因为它似乎没有很多人在网络上使用这种可能性。 因此,也许有一些问题呢?
I ask this because it seems that no many people on the net are using this possibility. So maybe there is some problem with it?
推荐答案
正如documentation你可以使用任何文件名,你想要的:
As stated in the documentation you can use whatever filename you want:
文件名是任意的。在<串GT;元素的名称将被作为资源ID
The filename is arbitrary. The <string> element's name will be used as the resource ID.
相关推荐
最新文章