Android 29--------------xxxxxx.9.png

Source: Internet
Author: User

Previous: http://www.bkjia.com/kf/201202/120459.html
One character is 9.png:
All the tasks that can be completed by the job catalog will be notified. There are many xxxxxx.9.png images in the framework-res.apk \ res \ drawable-hdpi directory.
Do not think that this 9 is only a distinction between the names of png images. In fact, it is a special format, and you have moved some hands and feet on the basis of the png image, and you will
Invisible (For details, refer to the following content ).
9.png is a new feature created on the Android platform.
While doing beautification, I really like an image clip, renaming and replacing the material under drawable-hdpi, but after running the system, I found that how is it stretched out like this?
Now, the 9.png image cannot be easily touched, but it doesn't matter. You will be able to see it later, and the android beautification master will be you.
First, we also need to introduce the difference between the 9.png image and its surrounding area, which has a pixel-level white area compared with the ordinary png image.
The secondary image is
The package will change to 21x21 pixels. Therefore, we should be aware of the size when making it.
When we make a 9.png image, you are still surprised to find that a picture of several KB or dozens of KB has become very small, usually as large as several hundred bytes,
The system will certainly be smoother to load.

It is important to note that the java runtime environment needs to be set up for the production tool, that is, to download and install jdk, and to set up environment variables in computer properties. This post will not describe the specific operations,
Find out how to set up environment variables online.

Ii. How to Make 9.png image materials:

1. Download tool: draw9patch.zip. This tool is self-contained in the SDK.

2. decompress the package and run draw9patch. bat.

 

3. Drag the image material you have created using psto the window and it will appear.


 

 

Explanation: the black and red stripes in the middle cannot be edited. The white transparent border on the edge is the added pixel border.
4. Place the mouse on the white border and click the left button without dragging. A black line will appear.

 

 

Explanation: the area of the black strip at the position of the First Part indicates that only the area is stretched when the image is horizontally stretched.
The area to the right of the black bar 2 indicates that only the area is stretched when the image is stretched vertically.
The position of the black bar 3 is left-covered, indicating the area where the image is displayed vertically.
The area to which the black bar on the 4th is overwritten indicates the area where the image is horizontally displayed.
The area where the image is not covered by black bars remains unchanged when it is stretched (for example, if the four corners of the image are curved, when the image is stretched randomly, the arc shapes of the four corners will not change)
5. If multiple parts are selected due to mistakes, press shift and click the left mouse button to remove the black ones.
6. The current stretch effect is displayed in the three black image areas on the right.
7. After selecting a region, click file-> save 9-pathon the top left to save the image with the suffix xxx.9.png. The image effect is as follows:




 

Explanation: we can see that there are 4 more black lines around the image, so we don't need to worry about this image. This is the original 9.png image. When we proceed to the next step, this image will become normal.

Black edge:
Decompress the xultimate-d9pc-x86.rar compressed package
1. pre-process the Black edge image to the directory example1 \ res \ drawable-hdpi
2.double xultimate-d9pc.exe: when the computer clicks the mouse, the Black edge information can be completed (the 9.png image in the figure contains the Black edge information)
3. The done file is automatically generated under the root directory. Under done \ example1 \ res \ drawable-hdpi, the processed 9. PNG image is generated.
4. This image is the one we want to beautify and replace.

 

 

================================================================== Anti-Edit make a Black edge template for the image ===
Decompress the apktool.zip package
Click Install. bat. Several files will be generated on the system drive C.
And put it in the c: disk root directory.
(C: is required, because the batch processing file executed later is written in c)
4. Run c: unpack in the root directory. bat, A update folder will be generated in c:, the content in the folder is the APK file you want to modify, and when you open drawable-hdpi
When you folder, you will find that the 9.png image inside has become similar to the one we made above, and there are four black edges. This is how the tool restored it.
==================================== Press the AIT + TAB key to convert the window. Compared with the Black edge template, the painting speed is fast, near ====================================

From running snails

Related Article

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.