Utility of android nine patch

后端 未结 8 1400
鱼传尺愫
鱼传尺愫 2020-12-06 07:57

I would like to know why do we use nine-patch ? I know is to shrink or stretch images but if I want to resize an image can\'t we just do it on a dedicated image editor like

8条回答
  •  情书的邮戳
    2020-12-06 08:26

    have you worked with css. if not then there is one property called repeat which gives you ability to repeat 1px image in to the width of 1040 and even more with out starching

    9 path do the same, some time due to the different resolution of the images rather creating separate image for each phone create 9 patch image

    Hope that help

提交回复
热议问题