9-patch drawable behaving badly, weird artefacts - what is wrong here?

后端 未结 3 1238
天涯浪人
天涯浪人 2021-01-15 08:21

so Im trying out the 9-patch images. I started out with a PNG-file where I have a semi-transparent square with rounded corners:

3条回答
  •  天命终不由人
    2021-01-15 08:36

    Try to do 9-patch markings from all 4 sides. Also make sure you have .9.png file extension (f.i. your_cool_pic.9.png)

    Here is my example enter image description here

提交回复
热议问题