简体   繁体   English

部署到Android设备的App的实用图像大小-背景图像和Sprites

[英]Practical Image Sizes for App deployed to Android Devices - Background Image and Sprites

I've reviewed the Android official document on screen sizes like the reference below: Now I am interested in publishing an application to marketplace and I want to know 1) What I need to support for acceptance 2) What will provide me with good coverage for majority of devices. 我已经查看了有关屏幕尺寸的Android官方文档,如下所示:现在,我有兴趣向市场发布应用程序,并且我想知道1)我需要什么来支持接受2)什么可以为我提供良好的覆盖范围大多数设备。 I don't have time to make sprites and background images for every HW scenario so I r need to know what is common practice. 我没有时间为每种HW场景制作精灵和背景图像,所以我需要知道什么是常见的做法。 Especially for sprites 32x32 and 64x64? 特别是对于32x32和64x64的图片? what about density? 密度呢?

http://developer.android.com/guide/practices/screens_support.html#range http://developer.android.com/guide/practices/screens_support.html#range

xlarge screens are at least 960dp x 720dp large screens are at least 640dp x 480dp normal screens are at least 470dp x 320dp small screens are at least 426dp x 320dp x大萤幕至少960dp x 720dp大萤幕至少640dp x 480dp普通萤幕至少470dp x 320dp小萤幕至少426dp x 320dp

The bvest thing to do is create different sprites and add them to the res/ folders. 最重要的事情是创建不同的精灵并将它们添加到res /文件夹中。 such as ldp, mdpi and so forth. 例如ldp,mdpi等。

Also you could work with Vector images this will also help. 您也可以使用Vector图像,这也会有所帮助。 What ive done is tested out what size images work on HDPI devices and put seperate images for each. 我所做的一切都经过测试,可以确定在HDPI设备上可以使用什么尺寸的图像,并为每个图像放置单独的图像。

This is the best approach. 这是最好的方法。 I guess this why google gives you this option. 我想这就是Google为什么会给您这个选项的原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM