Android's way of adapting a picture to the size of a control _android

Source: Internet
Author: User

This requires converting a. png-formatted picture into a. 9.png format,. 9.png is the suffix name. When the ANDROID-SDK is installed, the <draw9patch.bat> can be edited with the. png format and then saved into the. 9.png format. This file is stored in the->sdk->tools directory of the ANDROID-SDK directory you have installed.

The. 9.png format can be adapted to the size of the control in Andriod, and most importantly, it is not distorted. Is it perfect? Here's how to make the. 9.png format of the progress bar.

The interface after startup is as follows:

The first thing to do is to prepare the PNG picture to convert, and drag the picture in to see the effect below

Edit the picture below

Black points can be selected with the left mouse button, right button cancellation

Finally save the input file name on it, the suffix this tool will help us to automatically generate

The resulting picture on the PC can be seen on both sides of the black bar, which does not affect our mobile phone or the effect of the tablet.

The way to remove black line in Baidu Encyclopedia has instructions, Baidu Encyclopedia -9.png

But I have not tried, interested friends can try.

The pictures are made as usual. png is the same.

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.