Eclipse 3.5.2 中 Android ninepatch 图像错误

发布于 2024-09-15 08:18:57 字数 297 浏览 1 评论 0原文

我在 win7 上使用 Eclipse 3.5.2 并更新了最新的 sdk。每次我 创建 ninepatch 图像并将其复制到可绘制文件夹、项目中 变成错误,似乎该文件导致错误且不受支持。我使用 Photoshop 创建 PNG-24 图像,然后使用 draw9patch 工具对其进行编辑。

这是我的draw9patch屏幕截图:http://londatiga.net/draw9.jpg

提前致谢。

I'm using Eclipse 3.5.2 on win7 with latest sdk update. Every time i
create ninepatch image and copy it into drawable folders, the project
becomes error, seems that the file cause error and not supported. I use photoshop to create PNG-24 image then edit it using draw9patch tool.

Here is my draw9patch screenshoot : http://londatiga.net/draw9.jpg.

Thanx in advance.

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

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

发布评论

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

评论(1

半窗疏影 2024-09-22 08:18:57

您没有在图像的顶部和左侧边框上指定拉伸区域(那里没有黑色标记),android编译器无法处理图像,这就是您收到错误的原因。尝试在顶部和左侧添加黑色区域。

You didn't specify stretch regions on the top and left borders of the image (no black markers there), android compiler can't process the image, that's why you get the errors. Try adding a black region on top and left sides.

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