Make .9 graphs through Android studio

Overview:

The ".9" image is a special image used in Android development. It is to tell the development which area can be stretched and which area cannot be stretched, without affecting the clarity, and can be adaptive.

Naming conventions

Naming is a very important part of UI and development. If the UI names the diagrams provided to the development, the development can improve work efficiency and appear professional enough. Of course, some developments are named by themselves, so it depends on the development you are docking. The naming convention of dot-nine-map is that the previous dot "." plus "9.png" is ".9.png". Any element in it is indispensable, otherwise the development cannot be programmed.

make

The dot nine map is divided into 2 areas: 1. Stretch area (vertical, horizontal) 2. Display content area (vertical, horizontal)

 1, 2 are responsible for stretching control, 3, 4 means that the content is not responsible for stretching.

1.1, 1.2; 2.1, 2.2; represent the stretching area respectively. The length of the stretching bar on the same line represents the stretching ratio of different blocks. As shown in the above figure, the 1.2 area is longer than the 1.1 area, so the 1.2 area has a larger stretching ratio.

The picture below is a screenshot of the .9 picture operation on Android studio:

 

Guess you like

Origin blog.csdn.net/chenya866/article/details/126107082