Android设计中的.9.png

Android设计中的.9.png
http://isux.tencent.com/android-ui-9-png.html

Draw 9-patch | Android Developers
http://developer.android.com/tools/help/draw9patch.html

 

 Draw9patch Usage:

Here's a quick guide to create a Nine-patch graphic using the Draw 9-patch tool. You'll need the PNG image with which you'd like to create a NinePatch.

  1. From a terminal, launch the draw9patch application from your SDK /tools directory.
  2. Drag your PNG image into the Draw 9-patch window (or File >Open 9-patch... to locate the file). Your workspace will now open.

    The left pane is your drawing area, in which you can edit the lines for the stretchable patches and content area. The right pane is the preview area, where you can preview your graphic when stretched.

  3. Click within the 1-pixel perimeter to draw the lines that define the stretchable patches and (optional) content area. Right-click (or hold Shift and click, on Mac) to erase previously drawn lines.
  4. When done, select File > Save 9-patch...

    Your image will be saved with the .9.png file name.

posted @ 2014-04-23 14:59  petercao  阅读(350)  评论(0编辑  收藏  举报