一、9PNG圖片的製作
1. 雙擊工具draw9patch.bat (android sdk\tools\draw9patch.bat)
2. 將要編輯的圖片拖到編輯器
3. 按住鼠標左鍵在圖片想要進行拉伸的部位畫黑線
4. 按住Shift和鼠標左鍵進* 行清除
5. 最後保存file—>save 9-path
二、9PNG圖片黑邊的消除
1. 解壓xUltimate-d9pc-x86.rar
2. 把要去除黑邊的圖片,放在目錄example1\res\drawable-hdpi下
3. 雙擊xUltimate-d9pc.exe
4. 在example1的同級目錄下會生成done\example1\res\drawable-hdpi,該目錄存放的是去除黑邊的圖片