Reputation: 794
I'm trying to use a 9 patch image on a button in Android. I have it in the drawable-nodpi
folder so it should use the same image for any resolution and not stretch it. If that's the case I'm totally mystified as to why this would happen:
Looks fine in the GUI in Eclipse
It seems to be stretching the image even though its in the drawable-nodpi
, any idea why this is happening?
Upvotes: 1
Views: 891
Reputation: 5892
If you look closely at the bottom of your image, it looks as if there is some drop shadow in the same line as the bottom 9-patch black line. This will cause your 9-patch not to work.
Did you create the 9 patch in Android's 9 patch creator? This will make sure such things will not happen
Upvotes: 1