• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

.9.png help!

Search This thread

Futur Innovations

Senior Member
Nov 18, 2010
563
39
futurinnovations.blogspot.com
I can't drag and drop .9.pngs to the res/drawable folder! I don't know why, but when the file shows up under /drawable, it suddenly pops up with a red x and says that all the other drawables can't be found. What is happening? I'm trying to use a .9.png as a background for a view, but I can't seem to get eclipse to recognize the .9.pngs :( Thanks in advance
 

Zappescu

Senior Member
May 19, 2011
65
5
Naples
I had your same error before I used the tool provided for ninepatch building.
If you use the tool, no problem.
You can find it in: ...\android-sdk-windows\tools\draw9patch.bat

It's really easy to use. Google for a tutorial.
 

glodos

Member
May 3, 2008
40
848
Make sure you don't have any other drawable file with the same name as your nine patch or the name doesn't contain uppercase characters.

edit:
or you've just created your nine patch incorrectly
 
Last edited:

killersnowman

Senior Member
Mar 5, 2011
327
52
SLO
Why do you want it to be called .9.png? Cant you just rename it or is it a best practices kind of thing?

Or is this a type of png? A bit confused...

nvm.. its a stretchable png

From something awesome
 
Last edited: