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

后端 未结 3 1947
青春惊慌失措
青春惊慌失措 2021-01-15 08:32

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:37

    Make it small as possible. 9-patch cant shrink they can stretch. Fill right and bottom border with black color. Edit 9-patch borders with draw9patch tool to prevent errors. Your 9-patch should look similar to this one.

提交回复
热议问题