how does a 9patch png work in android apps

后端 未结 3 1567
渐次进展
渐次进展 2020-12-06 12:19

In a 9patch png, there are black edges in its four sides, but there is usually difference between the left to right, and the up to down side. Why? How does this difference i

3条回答
  •  爱一瞬间的悲伤
    2020-12-06 12:49

    The left and top are for scaling, and the right and bottom are for content. So the black lines on left and top will scale to fit, and the content for a button will be "inside" the black lines on the right and bottom.

提交回复
热议问题