制作九块图像或制作特殊分辨率图像?

发布于 2024-11-28 08:46:05 字数 323 浏览 4 评论 0原文

我知道 Android 更喜欢使用九块图像作为所有分辨率/尺寸屏幕的解决方案。现在,我必须开发一个包含大约 500 张图像的应用程序,并且它们将以完美的分辨率显示在手机和平​​板电脑上。

最好的方法是什么:
1. 将所有 500+ 图像转换为 9.png(不好的一面是需要时间)
2. 将所有 500 多个图像转换为平板电脑的分辨率,并让所有较小的屏幕使用它(不好的一面是我无法预测所有分辨率,只能使用通用分辨率)
3.还有别的事吗?

基本上我最关心的是超大屏幕,并且不允许制作两个版本的选项(尽管市场现在支持多个版本)。

最佳/最好的方法是什么?你会怎么办?

I am aware that Android prefers nine-patch images as solution for all resolution/size screens. Now, I have to develop an app with approx 500 images and they are to be displayed on both mobile phones and tablets at perfect resolution.

What is the best way to do:
1. Turn all 500+ images into 9.png (bad side is time needed for this)
2. Turn all 500+ images into tablet's resolution and let all smaller screens use it (bad side is that I cannot predict all resolutions but make generic one)
3. Something else?

Basically my biggest concern are x-large screens and the option to make 2 versions is not allowed (although market supports multiple versions now).

What would be the optimum/best way? What would you do?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

乄_柒ぐ汐 2024-12-05 08:46:05

如您所知http://developer.android.com/guide/practices/screens_support.html< /a>

您可以为每种屏幕尺寸创建一个文件夹,这样您就可以为每种设备放置您想要的尺寸的图片。缺点是 apk 大小会非常大! (对我来说,这在移动设备上确实是一个问题)。

所以,对我来说,最好的方法是做 9.png

问题可能是“为什么我需要这么多图片?”如果几乎是同一张图片使用多种颜色,也许您可​​以即时更新图片,这只是一个想法。

As you know http://developer.android.com/guide/practices/screens_support.html

You can have one folder for each screen-size, so you can put the pictures the size you want for each devices. The downside is the apk size gonna be really huge ! (which for me is really a problem on a mobile device).

So, for me, the best way is to do the 9.png

The question is probably "why do I need so many pictures?" If it's almost the same pic using several colors, maybe you can update the pic on the fly, just an idea.

云朵有点甜 2024-12-05 08:46:05

将所有 500 张图像转换为 9 个补丁将非常耗时 - 我花了很长时间才完成几个!

我本以为 500 张图像会有一些共同点,你是否能够修改图像,以便使用更少但相同的图像?您能否将这些图像提供给我们看一下,也许这可能有助于提出其他建议?

根据您提供的信息,我恐怕可以说最好和最佳的方法是不同的方法。最好的方法是9补丁,别忘了手机的屏幕尺寸也会改变,所以它不仅仅是两个不同的图像!

Turning all 500 images in to 9 patch will be hugely time consuming - it took me long enough just to do a couple!

I would have thought with 500 images there will be some common ground, are you able to modify the images so that you are using less, but the same one over? Are you able to make the images available for us to take a look at, perhaps that might help with other suggestions?

With the info you have provided, I am afraid to say the best and optimum way are different ways. The best way is the 9-patch, don't forget the screen size on phones also change, so it's not simply just two different images!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文