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:

but on phone it's like this:

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

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.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论