开发者

Optimal packaging of Android image app

I'm working on an app which displays various images. I want to optimize this for the various screen resolutions. The MultiResolution (1) tutorial uses many resource qualifiers in the res folder to display the appropriate images for the various device resolutions, but how do you package this? I don't want to ship the images for all devices (or do I?). I want to keep the download size as small as possible, so I only want to package the ones for that particular screen resolution. Or开发者_如何学Python, should I forget packaging images and put the images on-line somewhere?

Any opinions on this subject would be appreciated

(1) http://developer.android.com/resources/samples/MultiResolution/index....


You will want to provide the resources for every screen size you want to support so that android does not use CPU and battery life scaling images. Generally I use a drawable-ldpi, drawable-mdpi, and drawable-hdpi to cover the majority of devices.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜