开发者

Jags in .9.png buttons in Android!

I am developing an Android app. I have a custom button with a .9.png as background, it is perfect in the UI tool in Eclipse, shown here:

Jags in .9.png buttons in Android!

but on phone it's like this:

Jags in .9.png buttons in Android!

As you can see this is very jaggy(not sure I use the correct word) and this is my 9-patch file:

Jags in .9.png buttons in Android!

I know I can replace this simple button with an Shape XML drawable, but does a开发者_JAVA百科nyone know what may be causing this problem and how to solve it?


Try putting your resource in res/drawable-nodpi/, or possibly res/drawable/, instead of wherever it is, and see if that helps. As @MisterSquonk suggests, I think this is Android applying automatic density scaling.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜