有时清理并重新部署 9 个补丁后图像不起作用。必须重新部署几次才能修复

发布于 2024-12-16 12:23:58 字数 189 浏览 5 评论 0原文

我不知道为什么会发生这种情况.. 但有时当我们有一个新版本时,9 个补丁不起作用(实际的 9 个补丁图像被拉伸而不是正确缩放)..

我不确定为什么会这样发生了,但我认为它发生在清理和创建新版本之后,我必须卸载并重新构建来修复它..

我只是担心当我们发布时,客户可能会得到这个屏幕(看起来很糟糕)..有什么想法为什么会发生这种情况吗?

I'm not sure why this is happening.. But sometimes when we have a new build, the 9 patches don't work (the actual 9 patch image gets stretched instead of being scaled properly)..

I'm not sure why this happens, but i think it happens after cleaning and creating a new build, i have to uninstall, and re-build to fix it..

I'm just worried when we release, customers might get this screen (it looks terrible).. Any ideas why this is happening?

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

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

发布评论

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

评论(2

梦忆晨望 2024-12-23 12:23:58

重命名任何资源文件名,然后刷新您的项目。再次将该文件重命名为以前的名称并再次刷新您的项目。运行该项目,它会正常工作。

Rename any of your resource file name then refresh your project. Again rename that file to the previous name and refresh your project again. Run the project it will work fine.

爱*していゐ 2024-12-23 12:23:58

我发现解决该问题的唯一“快速”方法是将九个可绘制补丁重命名为临时名称,然后将其重命名回原来的名称。

我知道这有点hacky,但至少它有效:D

The only 'fast' way I found on fixing that issue is renaming the nine patch drawable to a temporal name and then rename it back to it's original name.

I know it's a bit hacky but at least it works :D

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