简体   繁体   English

9补丁图像不起作用

[英]9 patch image not working

Here is the image: 这是图片: 这是图片

It seem to be working fine in Eclipse, ie button is resized as expected and black bars are not shown. 在Eclipse中似乎工作正常,即按预期调整了按钮的大小,并且未显示黑条。 However in the emulator it shows up with black bars and stretched. 但是,在仿真器中,它显示为黑色,并被拉伸。

Image is saved as <name>.9.png . 图像另存为<name>.9.png I am using API 10 for both IDE and emulator. 我正在将API 10用于IDE和仿真器。

Any clues to what might be the problem? 关于可能是什么问题的任何线索?

The 1 px boarder needs to be either black or transparent. 1像素边界必须为黑色或透明。 It looks like the left hand boarder is black and not transparent. 看起来左手寄宿生是黑色且不透明。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM