Android: Make chat Bubble point 9 chart

Source: Internet
Author: User

Step one: Select a picture under Res, right click to select "Create 9-patch File"

Step two: Determine the name of the Point 9 chart, can only modify the information before 9.png

Step three: In the same directory will be generated just created point 9 diagram, double-click open for editing

Let's start by introducing the meanings of the four options in the edit page

1. Show lock: Select Showlock, then move the mouse over the picture to display a red slash indicates the area of the picture lock

2. Show patches: Displays the area in the picture that can be scaled, such as the green area in the red bezel

3. Showcontent: represents areas where content can be populated, such as the purple area

4. Show Bad patches: Displays the non-canonical zoom area in the original image. For example, parts with radians should not be scaled.

5. Zoom: You can adjust the zoom ratio of the editing area on the left

6. PatchScale: Adjusts the scale of the right preview area

Then we can adjust the size of the following four regions to set the properties of the point 9 graph

Note: When referring to the point 9 picture in the layout file, you do not need to add the file name. 9

Finally, the following:

Android: Make chat Bubble point 9 chart

Related Article

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.