Creating & Using 9-patch images in Android

前端 未结 8 2102
走了就别回头了
走了就别回头了 2020-11-30 00:39

I recently heard about 9-patch images. I know its 9 tiled and is stretchable. I\'d like to know more about it.

  • How can I create a 9-patch image?

    Is th

8条回答
  •  一整个雨季
    2020-11-30 00:53

    Main Advantages of 9-patch over regular png

    Actually 9 Patch images are stretchable, repeatable images reduced to their smallest size.the image won't stretch and loose proportions in different screen sizes. One more and biggest advantage is memory.

    Same small size memory can be reused for different screen size devices. Well-designed 9-patch images are less error-prone and have high re-usability .

    https://developer.android.com/studio/write/draw9patch.html

提交回复
热议问题