draw9patch显示模拟器中的边框(draw9patch showing the border in the emulator)

系统教程 行业动态 更新时间:2024-06-14 16:57:17
draw9patch显示模拟器中的边框(draw9patch showing the border in the emulator) java

任何人都可以告诉我为什么黑色边框出现在模拟器中,以及如何删除它们?

Can anyone tell me why the black borders are appearing in the emulator, and how to remove them?

最满意答案

沿着上边缘和左边缘添加黑色线条,如果您在任何一侧缺少黑色,则可能是设备不接受它作为有效的九补丁。

这可能与九个在黑色线条中有“间隙”的补丁似乎在编辑器中有效,但在设备上不起作用。

编辑:正如@ByteMe在评论中说明的那样,请确保文件名末尾有.9.png 。

Add black lines along the upper edge and the left edge, it could be that the device does not accept it as a valid nine-patch if you are missing black on any of the sides.

This could be related to ninepatches that have 'gaps' in the black lines appear to work in the editor, but will not work on a device.

Edit: And as @ByteMe states in a comment, make sure you have the .9.png at the end of the filename.

更多推荐

本文发布于:2023-04-12 19:52:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/aaaf0dc47736e511d08f59f01f89b8ed.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:边框   器中   draw9patch   emulator   border

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!