有效地使用Android资源 [英] Using an Android resources efficiently
问题描述
我试图找出如何有效地使用Android的资源系统,既能提供最高分辨率的资源和保持.apk文件大小低。
I'm trying to figure out how to use Android's resource system efficiently, both to provide the highest resolution resources and to keep the .apk size low.
我的资源文件夹:
drawable-normal-mdpi
drawable-normal-hdpi
drawable-large-mdpi
现在我使用的资源(游戏)的正常HDPI和大MDPI的方式是完全一样的。我不希望在我最后的apk同时包括因为它会不必要地膨胀规模。有没有办法来解决这个问题?我试图用一个符号链接(Linux版),但Android的工具按照链接复制的资源。
Now the way I'm using the resources (a game) the normal-hdpi and large-mdpi are exactly the same. I don't want to include both in my final .apk because its going to inflate the size unnecessarily. Is there a way to get around this? I tried to use a symbolic link (linux) but the android tools follow the links and copy the resources.
推荐答案
我认为你正在寻找一个的 AliasResource 。
I think you are looking for an AliasResource.
这篇关于有效地使用Android资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!