我的9片图像停止工作 [英] my 9 Patch Image stopped working

查看:113
本文介绍了我的9片图像停止工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用9片图像有一段时间了。但是,来到一个问题。 GUI设计在Eclipse中告诉我,像工作正常。它看起来应该如何。

I have been using 9 patch images for a while now. But have come to an issue. The GUI designer in Eclipse tells me that the image works fine. And it looks how it should.

然而,在该装置它只是拉伸图像,就好像它是一个正常的PNG

However in the device it just stretches the image as if it were a normal png.

最糟糕的是,这是工作,但后来我做了清理和重建,我似乎无法得到9patch形象的工作了。

The worst part is that it was working but then i did a Clean and Rebuild and I cannot seem to get the 9patch image working any more.

我的问题是有其他人遇到过这个问题。有一些设置的地方在Android编译或月食将关闭这个功能。我已经打开在draw9patch.bad的图像,他们似乎一切正常。真正令人困惑的问题是,他们表现出优良的日食,他们在设备中的应用进行了合作。所有突然他们不会正确地舒展。

My question is has anyone else encountered this issue. Is there some setting somewhere in the android compilation or in eclipse that would turn this off. I have opened the images in draw9patch.bad and they seem to be working correctly. The really perplexing issue is that they show fine in eclipse, and they were working in the application in the device. All the sudden they wont stretch correctly.

推荐答案

这绝对是一个问题,最新的SDK。关于如何解决这个指令可以在这里找到:

This is definitely an issue with the latest SDK. Instructions on how to resolve this can be found here:

http://$c$ctrips.blogspot.com/2010/12/android-draw-9-patch-seems-broken-too.html

基本上你只需要一个丢失的jar文件添加到[SDK安装目录] /工具/ lib文件夹。

Basically you just need to add a missing jar file into the [sdk-install-dir]/tools/lib folder.

这篇关于我的9片图像停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆