Android Draw9patch picture making and using
Understand 4 words:
- Top decided to pull left and right not deformed
- Left, up and down, not deformed.
- Right set content height area
- Bottom Set Content width area
Below I take 6 pictures to illustrate separately:
1.QQ Colorful Bubble Chat dialog box is also used. 9 Picture making
Inherited from the ring letter im Instant Messaging students can go to see their source code, Chat dialog box is so made with 9patch.
2. The top is generally 1 pixels, depending on the point of stretching, if the right to draw the red line of the 2 picture is stretching the local area.
3. The left is generally also 1 pixel points, according to the point of stretching up and down, such as the right to draw the red line of the 2 picture is the stretch of the local area.
4. Check Show content (display contents), according to the stretch of the part is to display the current content of the area, the right figure purple part is the content display area.
5. Ibid.
6. Final Effect Chart
Hope that through this article can help you, thank you for your support to this site!