Android 9 补丁背景图像初始 PNG 大小?

发布于 2024-11-04 17:19:15 字数 104 浏览 6 评论 0原文

我正在考虑为我的应用程序制作 9-Patch 背景图像,我想知道在将其转换为 9-Patch 图像之前,我应该在 Photoshop 中将初始 PNG 设置为什么尺寸?

谢谢亚伦

I'm looking at making a 9-Patch background image for my application and I'm wondering what size should I make the initial PNG in Photoshop before I convert it to a 9-Patch Image?

Thanks Aaron

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

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

发布评论

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

评论(3

躲猫猫 2024-11-11 17:19:15

您的图像可以小至 5 x 5,大至 1280x800...

这实际上取决于您想要在背景图像上显示的内容。小文件当然不如专业人士设计的全屏启动画面那么令人兴奋:)

如果您希望启动画面填满屏幕,您可以设计启动画面,使其适合最大的屏幕,并将其放入图像视图中android 将其裁剪为较小的屏幕。

您还可以缩放图像以适应所有分辨率,但这看起来不太清晰。

Your image can be as small as 5 by 5 to as large as 1280x800...

It really depends what you want to show on that background image. small files are certainly not as exciting as nice fullscreen splash screens designed by a professional :)

If you want your splash screen to fill the screen, you can design your splash screen so it fits the biggest screen out there and put it inside an imageview letting android crop it for smaller screen.

You can also scale the image to fit all resolutions, but this is not as sharp looking.

世态炎凉 2024-11-11 17:19:15

看看 http://developer.android.com/guide/practices/screens_support.html

注意要考虑的屏幕尺寸和密度的组合。

目前,您可能需要至少覆盖​​三种图像尺寸:320x480、480x800 以及适用于小型/LDPI 设备的尺寸。在不久的将来,您可能还希望包含 XHDPI 设备的映像。

在添加 9 块信息之前,图像应具有这些尺寸。 9 块信息将使实际图像尺寸在宽度和高度上增大 2 个像素,这就是它应该如何工作。因此,320x480 的图像将变为 322x482。

Take a look at http://developer.android.com/guide/practices/screens_support.html

Note the combination of screen sizes and densities to consider.

For now, you'll probably want to cover at least three image sizes: 320x480, 480x800, and something for small/LDPI devices. In the not-too-distant future, you might also want to include an image for XHDPI devices.

The images should be these sizes, before adding the 9-patch info. The 9-patch info will make the actual image sizes larger by 2 pixels in width and height, and that's how it's supposed to work. So, the 320x480 image will become 322x482.

许久 2024-11-11 17:19:15

我想这一切都取决于你想从图像中得到什么。显然,在转换图像之前,请确保图像包含您需要的所有内容。也许我误解了你的问题。

I guess that all depends on what you want from the image. Ensure that the image has everything that you need in it before converting it, obviously. Perhaps I'm misunderstanding your question.

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