On Eclipse. 9 figure can be used normally, but to the Androidstudio on the error can not be quoted, the hint is not found. 9 diagram problem. Solution: Androidstudio A more rigorous definition of the. 9 diagram, 1. If a picture is not. 9, the suffix of the image must not be accompanied by xxxx.9.png, so that it is illegal on androidstudio and will error. 2. If a picture is. 9 figure, it will still error, at this time notice this. 9 of the picture is a complete. 9 figure, that is, is not on this graph, four side of the stroke, only four edges are stroked, so that androidstudio can be recognized. 3. Using studio to make point 9 diagram: First, let's take a look at a point 9 figure example
The following explanation:
1, choose a PNG format picture (PS: Must be in PNG format) right mouse button, the following interface appears:
Select this create 9-patch file to generate a. 9.png format picture
2, see, 1 lines and 2 lines want to meet the place is can be stretched, generally choose, color shape and surrounding the same pixel to stretch, if there is a radian such as irregular shape to avoid the best, and 3 line and four line intersection is the part that can fill the content. Then point to save, a point 9 figure is good.
Android Studio Point 9 figure