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