The recent learning of Android is not good and then saw the use of. 9.png Write the dialog box where, but the book is too simple to write a feeling to make and the book is not the same and then go to all kinds of Baidu feel online about this thing is paste copy and did not solve the problem and then they got out of the blind
1.9.png format
Run with Sdk\tools\draw9patch.bat program
The window that appears
Click File to select Open and select your own picture path
And then start editing the picture under the gray background is our editable picture in this picture we can draw lines on the border of the picture
This line is divided into 2 groups (1) The leftmost line at the top of the line/////indicates the part of the line to be stretched
(2) The bottom line of the rightmost line/////indicates that the part of the line is the portion of the content that exists
Then click File to select Save to generate a. 9.png format picture.
But but
There's a black line on this picture.
This time need the next tool xultimate-d9pc (Baidu to download) This has a black line picture in the xultimate-d9pc root directory under the example1\res\drawable-hdpi folder
Then run Xultimate-d9pc.exe (under the xultimate-d9pc Program root directory)
Will generate the Done folder above our uncensored pictures are in there, all the way in.
This is the time to put this picture into your own project (do not need to rename and remove that. 9) use @drawable/send when referencing a file
Then run the program and use this image to create a mock UI.
Detailed tutorials for Android. 9.png Picture Write Chat dialog box