首页 > 其他 > 详细

Nine-patch

时间:2014-03-07 17:59:39      阅读:536      评论:0      收藏:0      [点我收藏+]

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

 

bubuko.com,布布扣

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.

 

bubuko.com,布布扣

 

大致意思:

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

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

bubuko.com,布布扣

Nine-patch,布布扣,bubuko.com

Nine-patch

原文:http://www.cnblogs.com/xiaokang088/p/3586812.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!