开发者

Change string.xml at runtime

开发者 https://www.devze.com 2023-02-06 01:13 出处:网络
I h开发者_如何转开发ave a special request to implement dynamic language packs and themes in Android. This basically means:

I h开发者_如何转开发ave a special request to implement dynamic language packs and themes in Android. This basically means:

  1. to download a zip file containing a file named strings.xml (containing the translation)
  2. replace in the application the file /res/values/strings.xml with the one downloaded

Is this possible? Thank you for your help.


No. Things inside the Res folder are static and you can't recreate the R class in runtime.

Why don't you try using sqlite for your situation?

0

精彩评论

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