How Android makes nine pictures (. 9.png)

Source: Internet
Author: User

For programmers, especially the front-end design designer, nine Gongge picture is necessary (. 9.png), for beginners do not know this nine Gongge picture what is the use, in fact, this nine Gongge pictures actually commonly used in Android button components, to up and down the background image.

Tools/Materials
  • Computer
  • Draw9patch.bat
Method/Step
  1. The first step: first to find Draw9patch.bat, my E:\program\Program files\android-sdk\tools\draw9patch.bat, under this path. For different people presumably the path of Android installation is different, and the same is the "\android-sdk\tools\draw9patch.bat" this path.

    The second step: double-click the mouse draw9patch.bat open it, open it will pop up Cmd.exe and draw 9-patch.

    Step three: Click "File" in Draw 9-patch, then select "Open 9-patch" and then select a picture (here I select the Line.png on the desktop).

    Fourth step: Click on the mouse to point out the two lines, and then you can see the icon on both sides of the black line, if you want to stretch the part will be part of black on the line, the concrete can see the picture below.

    Fifth step: Press "Ctrl+s" to save, I now save on the desktop, on the desktop can see this line.9.png picture.

How Android makes nine pictures (. 9.png)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.