Android nine patch - allow only a specific area of a background drawable to stretch

后端 未结 4 1590
傲寒
傲寒 2021-02-06 15:11

How does one go about creating a View that has boundaries with triangular perforations ?

I\'ve been using background drawables to achieve this so

4条回答
  •  终归单人心
    2021-02-06 16:03

    You can use a NinePatch image as drawable of that view. To learn how to create a NinePatch image, goto Draw 9-patch

提交回复
热议问题