How do I create a 9Patch image that only scales horizontally? I don't want it to scale vertically. I am not able to create such a 9 PNG.
I tried the article http://radleymarx.com/blog/simple-guide-to-9-patch/ but their method is not working. When I skip the left guide, it gives an error in Eclipse.
I am trying to scale this image horizontally, to create a header bar.
You could try using a tiled drawable instead of a 9patch:
You create a new drawable via xml, using the non-9patch version of your image, then set the tileMode to repeat. You can then set this new drawable as the background of your header, and it should display as you've described.
http://androidblogger.blogspot.com/2009/01/how-to-have-tiled-background-cont.html