Android Draw9patch picture making and using

Source: Internet
Author: User

Understand 4 words:

    1. Top decide left and right to not deform
    2. left decided to move up and down without deformation
    3. Right Set Content Height area
    4. below Set content width area

Let me take 6 pictures to illustrate each of the following:

1.QQ Colorful Bubble Chat dialog box is also used. 9 Picture making

have inherited the ring letter im Instant Messaging students can go to see their source, Chat dialog box is also made with 9patch.

2. The top is generally 1 pixels, according to this point stretching around, if the right to draw the red line of 2 pictures is the extension of the local area.

3. The left side is also generally 1 pixels, according to this point stretching up and down, such as the right to draw the red line of 2 pictures is the extension of the local area.

4. Tick Show content (display), depending on the part of the extrusion that shows the current content, the purple part of the right is the area where the content is displayed.

5. Ibid.

6. Ultimately

How about a little?

Android Draw9patch picture making and using

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.