What limits are there on the number of Android resources?

后端 未结 3 1660
一生所求
一生所求 2021-02-13 22:00

One of our apps has several thousand small data files that we\'re currently packaging as assets. It would help our code if we could package them as raw resources. I have tried t

3条回答
  •  不知归路
    2021-02-13 22:54

    There's no explicit documentation on this that I know of either, however one can make reasonable assumptions that the Android devs have designed Android appropriately given their recommendations. They recommend that you put strings and drawables into resources with the potential to supply different ones for different locales, screen sizes, screen densities and orientations. The sheer number of these possibilities suggests to me that they expect apps to include thousands of resources and you'll be just fine supplying a few thousand small raw resources.

提交回复
热议问题