Detailed tutorials for Android. 9.png Picture Write Chat dialog box

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.