Android Basics Getting Started tutorial--1.6.9 (Nine sister) pictures how to play

Source: Internet
Author: User

Android Basics Getting Started tutorial--1.6.9 (Nine sister) pictures how to play

tags (space delimited): Android Basics Getting Started Tutorial

1. Introduction to this section:

Some questions may be:

1. What is the. 9 image?
A: There are pictures of. 9 in front of the picture suffix name, such as Pic1.9.png.

2.. 9 pictures What do you do?
A: Image distortion does not occur in certain areas when the picture is stretched, and the undistorted area can be drawn by ourselves
3.. 9 Picture What do you do with it?
A: 工欲善其事, its prerequisite, do. 9 Image tools are:

①Android SDK comes with: Draw9patch.bat, but this thing out for a long time, Google unexpectedly did not update ...

②Ninepatcheditor, compared to the self-brought, has done some optimization, support batch operation, and the interface looks a little:
Interested can download under, I usually use this, download link: ninepatcheditor.zip


③ninepng Nine figure artifact , mobile version of the. 9 processing tools, do or is more like, but to even WiFi transfer pictures, the actual operation of a little trouble, the function is relatively strong, interested in the relevant application market search download:

④PhotoShop, this is more exaggerated, generally use this to do. 9 pictures are artists, interested can search the relevant tutorials!

2.. 9 pictures How do I do it?

!! Core points: Top left stretch, lower right content!!!!!!
In fact, the core of the above content! First to find a picture to try hackers!

1. Draw9patch.bat production. 9 Figure Example:

There is such a picture:, we through the TextView Android:blackground can be set to textview a background, the content is still normal when less, more than one may appear the following situation:
Will find that the picture has been stretched, it is obvious that this does not fit our needs, so we need to do some processing of this picture, so that the fillet part does not stretch with the length, the middle part is stretched

Open our Draw9patch.bat, click File in the upper left corner, go to the corresponding directory open the picture material we want to process,
Next you will see the main interface of our tools:

The preview area to the right is: portrait stretch, transverse stretch, preview of transverse stretch

OK, then we'll start working on the picture:

Step 1. Adjust zoom and patch scale: Set your own appropriate zoom, tick show patch
Can make zoom big enough, because we need to deal with "Zebra crossing" later

Step 2. The next thing we need to do is to operate on the zebra crossing:
PS: The black line is a strip of points out, if you want to eliminate the point: Hold down the shift point!

Step 3. Save the picture to end with. 9.png
For example, the file name saved here is back.9.png;
Hey, and then put him into our project, set the background to TextView:

Effect of the lever drop, and then no matter how long the characters we display, are the results of this picture, new skills get~

2. See how others do it. 9 Figure:

Depending on the situation, we may need to do different. 9 figure, below to appreciate the next few others have made the slightly more complicated. 9 Example of a chart!
Example:

1. Original link: http://www.miued.com/2074/OK, this material I like, can not qaq!

2. Original link: http://blog.csdn.net/lizzy115/article/details/7950959

3. Original link: http://www.cnblogs.com/vanezkw/archive/2012/07/19/2599092.html

3. Summary of this section:

OK, this section is about. 9 Making a stretched picture tutorial is here, or relatively simple, remember our formula: Left upper stretch, lower right content!
Do a few. 9 figure after I believe you have a deep understanding, Goodbye ~

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Android Basics Getting Started tutorial--1.6.9 (Nine sister) pictures how to play

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.