How can I load the strings.xml dynamically? Can I put the file in a server?

前端 未结 2 603
小蘑菇
小蘑菇 2021-01-23 01:39

Why i ask this is because the size of my APK is huge. I wanna make it smaller.

There\'re lots of strings in strings.xml. Our product manager force us to support all lan

2条回答
  •  遇见更好的自我
    2021-01-23 02:28

    You can easily call some web-service on your application start and fetch the strings of desired/selected language in form of say JsonArray. Then parse that data to some data-model like ArrayList of string to manage in your app

提交回复
热议问题