开发者

Is it possible to have more than one string resource file in Android?

开发者 https://www.devze.com 2023-04-08 12:26 出处:网络
I have my primary string resource file for android, and it is quite full (with no en开发者_运维问答d in sight). So, I was hoping to do some house cleaning and move some string into their own resource

I have my primary string resource file for android, and it is quite full (with no en开发者_运维问答d in sight). So, I was hoping to do some house cleaning and move some string into their own resource file. Is this possible?

I know that one can have something like string-en or string-de, but is it possible to maybe have a resource file such as string-errors?


Apparently so. I just took a small app of mine, created a new XML file, values/labels.xml, and moved some of my string resources from values/strings.xml into it. I made no other changes to the app; it still worked fine.

0

精彩评论

暂无评论...
验证码 换一张
取 消