Nine-patch

http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch

 

Nine-patch

This NinePatch defines one stretchable area with the left and top lines

and the drawable area with the bottom and right lines.

In the top image, the dotted grey lines identify the regions of the image that will be replicated in order to stretch the image.

The pink rectangle in the bottom image identifies the region in which the contents of the View are allowed.

If the contents don't fit in this region, then the image will be stretched so that they do.

 

Nine-patch

 

大致意思:

左边线和上边线圈定的区域是用来拉伸的。

右边线和下边线形成的区域是用来填充内容的,这个是可选的。

Nine-patch

上一篇:JAVA----编程列出一个字符串的全字符组合情况,原始字符串中没有重复字符


下一篇:65行 JavaScript 代码实现 Flappy Bird 游戏