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.
更多推荐
发布评论