开发者

Using an Android resources efficiently

I'm trying to figure out how to use Android's resource system efficiently, both to provide th开发者_StackOverflow社区e highest resolution resources and to keep the .apk size low.

My resource folders:

drawable-normal-mdpi
drawable-normal-hdpi
drawable-large-mdpi

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.


Want to improve this post? Provide detailed answers to this question, including citations and an explanation of why your answer is correct. Answers without enough detail may be edited or deleted.

I think you are looking for an AliasResource.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜