title: 9patch border issues
body: <p>Is there a trick to making 9patch images with single pixel borders? </p>
  
  <p>I'm not talking about the single pixel black borders that you use to define the stretchable and content areas.  I'm talking about the image itself.  If I create an image that has a 1 pixel border around it, often times android will pick one of the edges and stretch it to 2 (or sometimes more) pixels, even though I specifically left the edges out of the stretchable area in the draw9patch utility.</p>
  
  <p>Here is a screenshot of what I mean; in this screenshot I've got two buttons in a vertical LinearLayout with the same background image.  The top button obviously has a thicker border, though it shouldn't.</p>
  
  <p><a href="http://www.vimtips.org/media/button_ss.png" rel="nofollow noreferrer">http://www.vimtips.org/media/button_ss.png</a></p>
  
  <p>Here is a closeup of the screenshot button (on the left) and the actual 9patch image (on the right).</p>
  
  <p><a href="http://vimtips.org/media/images/buttoncmp.png" rel="nofollow noreferrer">http://vimtips.org/media/images/buttoncmp.png</a></p>
  
  <p>Buttons are not the only place I've seen this.  If I create a background image with a 1 pixel border and use it as the background for ListView rows, sometimes the border appears to be 2pixels instead of just 1.</p>
  
  <p>It's hard to get a UI to look exactly how you want it with these problems.  There's got to be a way to get it to appear how you think it should.</p>