title: 9 patch drawable
body: <p>So here's my image:</p>
  
  <p><img src="https://i.stack.imgur.com/jDk6A.png" alt="raw"></p>
  
  <p>The problem is, draw9patch can't create normal 9 patch from this (shows errors in padding). Neither does android scale it correctly if I create 9 patch manually, like so:</p>
  
  <p><img src="https://i.stack.imgur.com/vrDUI.png" alt="manual 9 patch"></p>
  
  <p>I believe that it's a color issue, that android sees the borders of my original image as a part of 9 patch paddings and thus, scales incorrectly.</p>
  
  <p>Is there a way, to create a 9 patch from this?</p>
  
  <p>Thanks in advance :)</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>There must be NO extra empty border around original image, or it will persist and will have a white lines around it.
  There must be 1 extra pixel added to every side of the raw image to contain 9 patch paddings, so if the original width was 50px, it will be now 52 px.
  It's not the first time I'm making a nine patch&lt; just this time it doesn't work.
  If you don't believe me, try and do it in draw9patch.bat and you'll see that it doesn't add extra border at the top and shows error even on the original image.</p>
  
  <p><strong>EDIT</strong>
  Ok. NVM, just had to make raw image a bit wider. Now it scales right,</p>