Resize bitmap inside a drawable layer-list

后端 未结 2 2114
清酒与你
清酒与你 2021-01-13 09:32

Currently I\'m developing a Android application. I want to make a text (a header) with a background that looks like this:

 _______
/______/

2条回答
  •  旧时难觅i
    2021-01-13 10:00

    Instead of using a layer-list with gradient / border stroke and a custom image, consider using a NinePatchDrawable.

    There is also a handy 9-patch creater that comes with the android SDK.

提交回复
热议问题