The first question,. 9 format pictures What's the problem with our previous general picture?
This is a special kind of image in Android development. Images of this format have the ability to adjust the size of the Android environment with adaptive sizing. (1) allows developers to define extensible areas where the content of the expandable area is extended when the image needs to be stretched to fill larger areas than the image itself. (2) allows the developer to define the content display area for displaying text or other content.
Second question, what is the use of the. 9.png format picture?
This is very useful, for example, the simplest use is to chat the picture frame text behind the package background image is used. 9 format of the picture, can be as much as the size of the text to scale, both beautiful and practical!
Third question does this format bother you?
It is very simple to use because the Draw9patch.bat file under the Tools directory under our Android development can help us complete the development of the. 9 format picture. but be careful: Use this bat file to be sure to configure the Java environment variables in your computer environment first!
Open The Draw9patch.bat file and we can see the following interface
Next click File-open to open the image you want to edit, you can see the following interface
Place the mouse over a white border, Click the left button to drag, the black line appears. The black line indicates stretches the area. Where there is no black bar, the area covered is the image is stretched to remain the same (for example, if the image is curved at the corners, when the picture is arbitrarily stretched, the corners of the arc will not change)
Select a good area, click on the left file-"save 9-path, save the picture, suffix named Xxx.9.png,
About Android production. 9.png Pictures